/* DouDesign palette, editorial spacing and motion */
:root {
  --paper: #f7f8f3;
  --ink: #20372d;
  --muted: #65756b;
  --line: #cbd9cf;
  --forest: #1b3c31;
}
body, body * { font-family: 'Taipei Sans TC', sans-serif !important; }
body { background: var(--paper); }
.site-header { background: var(--paper); }
.site-footer { background: #1c3a30; color: #edf4eb; }

/* A left-to-right menu reveal with a reversible close animation. */
.mobile-menu:not([hidden]) {
  opacity: 0;
  clip-path: inset(0 100% 0 0);
  pointer-events: none;
  transition: clip-path .56s cubic-bezier(.76, 0, .22, 1), opacity .42s ease;
}
.mobile-menu.is-open:not([hidden]) {
  opacity: 1;
  clip-path: inset(0 0 0 0);
  pointer-events: auto;
}
.home-page .mobile-menu:not([hidden]), .mobile-menu:not([hidden]) { background: #e8f0e9; }
.mobile-menu a { opacity: 0; transform: translateX(-20px); transition: opacity .3s ease, transform .46s cubic-bezier(.2,.7,.2,1); }
.mobile-menu.is-open a { opacity: 1; transform: none; }
.mobile-menu.is-open a:nth-child(1) { transition-delay: .12s; }
.mobile-menu.is-open a:nth-child(2) { transition-delay: .17s; }
.mobile-menu.is-open a:nth-child(3) { transition-delay: .22s; }
.mobile-menu.is-open a:nth-child(4) { transition-delay: .27s; }
.mobile-menu.is-open a:nth-child(5) { transition-delay: .32s; }
.menu-toggle span, .home-header .menu-toggle span { transition: transform .38s cubic-bezier(.2,.7,.2,1), background-color .3s ease; }
.home-official-logo { transition: opacity .35s ease; }
.home-page .mobile-menu a { border-color: #bacbbd; }
.home-page .mobile-menu a:hover { color: #168454; }

/* Keep the Chance-inspired geometry while giving DouDesign its own green atmosphere. */
.chance-hero { background: #eaf1eb; color: #1d3128; }
.chance-hero:before {
  background: radial-gradient(ellipse 25% 43% at 10% 8%, #d7e6dc 0, transparent 84%),
    radial-gradient(ellipse 30% 44% at 42% 11%, #fbfcf8 0, transparent 90%),
    radial-gradient(ellipse 27% 38% at 78% 12%, #dce9de 0, transparent 95%),
    radial-gradient(ellipse 26% 48% at 64% 65%, #f8fbf7 0, transparent 90%),
    radial-gradient(ellipse 23% 44% at 22% 70%, #d8e5dd 0, transparent 95%);
}
.chance-hero:after { background: linear-gradient(95deg, #dce9df40, transparent 45%, #f7fcf665 75%, transparent); }
.chance-signature { border-color: #9ab7a4; }
.chance-signature:before { background: #208651; }
.chance-kicker, .chance-scroll { color: #6a8573; }
.official-lockup > img { filter: none; }
.chance-social { background: #59826a99; }

/* A small, centered wall of square portfolio studies. */
.featured-work { background: #f8f9f5; padding-top: 108px; padding-bottom: 142px; border-top: 1px solid var(--line); }
.featured-work-inner { max-width: 1120px; margin-inline: auto; }
.featured-work .section-heading { align-items: end; border-top: 1px solid var(--ink); padding-top: 19px; margin-bottom: 54px; }
.featured-work .section-heading h2 { font-size: clamp(22px, 1.75vw, 29px); margin-top: 19px; }
.featured-work .work-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; }
.featured-work .work-card:nth-child(even) { transform: none; }
.featured-work .work-image { aspect-ratio: 1; background: #dde6dd; }
.featured-work .work-meta { border-top: 1px solid var(--line); margin-top: 13px; padding-top: 11px; font-size: 8px; }
.featured-work .work-meta span:last-child { display: inline; }
.featured-work .work-card h3 { font-size: 16px; line-height: 1.5; margin: 13px 0 0; }
.featured-work .work-card p { display: none; }
.featured-work .work-visit { display: none; }

/* Interactive service cards reveal a short explanation and a direct link. */
.service-teaser { display: block; background: #e8f0e9; color: var(--ink); padding-top: 118px; padding-bottom: 136px; border-color: var(--line); }
.service-teaser-inner { max-width: 1120px; margin-inline: auto; display: grid; grid-template-columns: minmax(0, .86fr) minmax(0, 1fr); gap: 10%; }
.service-statement h2 { font-size: clamp(25px, 2.15vw, 34px); max-width: 400px; line-height: 1.55; }
.service-statement p { color: #5a7162; max-width: 320px; }
.service-list { display: grid; gap: 12px; align-self: start; }
.service-flip-card { height: 106px; perspective: 1000px; }
.service-flip-inner { position: relative; width: 100%; height: 100%; transform-style: preserve-3d; transition: transform .68s cubic-bezier(.2,.7,.2,1); }
.service-flip-card.is-flipped .service-flip-inner { transform: rotateX(180deg); }
.service-flip-face { position: absolute; inset: 0; backface-visibility: hidden; -webkit-backface-visibility: hidden; }
.service-flip-trigger { width: 100%; border: 1px solid #bdd0c0; padding: 0 24px; background: #f7f9f4; color: var(--ink); display: flex; gap: 20px; align-items: center; text-align: left; transition: background .25s ease; }
.service-flip-trigger:hover { background: #f0f6ee; }
.service-flip-trigger strong { flex: 1; font-size: 18px; font-weight: 400; }
.service-number { font-size: 10px; color: #708a78; }
.flip-symbol { font-size: 17px; transition: transform .25s ease; }
.service-flip-trigger:hover .flip-symbol { transform: translate(3px,-3px); }
.service-flip-back { transform: rotateX(180deg); display: flex; align-items: center; gap: 16px; padding: 14px 21px; background: #234b38; color: #fff; border: 1px solid #234b38; }
.service-flip-back > div { min-width: 0; flex: 1; }
.service-flip-back > div > span { font-size: 10px; letter-spacing: .12em; color: #b9d6c0; }
.service-flip-back p { margin: 6px 0 0; font-size: 12px; line-height: 1.5; color: #f3f7f0; }
.service-list .service-flip-back a { display: inline-flex; align-items: center; flex: none; border: 0 !important; padding: 0 !important; color: #fff; font-size: 10px; white-space: nowrap; text-decoration: underline; text-underline-offset: 4px; }
.service-flip-reset { border: 0; background: none; color: #d7ead8; font-size: 19px; padding: 6px; }
.service-flip-card:focus-within .service-flip-trigger { outline: 1px solid #3a7950; outline-offset: 2px; }

/* All inner pages share a clear two-column heading rather than an orphaned third grid item. */
.page-hero { min-height: 340px; }
.page-hero-inner { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1fr); grid-template-rows: auto auto; column-gap: 9%; row-gap: 25px; max-width: 1120px; margin: 92px auto 0; align-items: end; }
.page-hero-inner .eyebrow { grid-column: 1 / -1; color: #698574; }
.page-hero-inner h1 { grid-column: 1; font-size: clamp(28px, 2.35vw, 38px); }
.page-hero-inner p { grid-column: 2; max-width: 380px; color: #607367; }
.about-layout { max-width: 1280px; margin-inline: auto; gap: 9%; }
.about-text h2 { font-size: clamp(23px, 2vw, 32px); min-height: 1.7em; }
.about-text h2.is-typing::after { content: ''; display: inline-block; width: 1px; height: .9em; margin-left: 4px; vertical-align: -.08em; background: var(--ink); animation: typeCursor .65s steps(1) infinite; }
@keyframes typeCursor { 50% { opacity: 0; } }

/* Editorial journal: category rail on top and image as a small supporting note. */
.article-editorial { padding-top: 72px; padding-bottom: 155px; }
.article-editorial-inner { max-width: 1120px; margin-inline: auto; }
.article-filter { display: flex; align-items: center; justify-content: space-between; gap: 30px; padding: 0 0 24px; border-bottom: 1px solid var(--ink); }
.article-filter nav { display: flex; flex-wrap: wrap; gap: 10px 28px; }
.article-filter nav a { font-size: 11px; color: #687b6c; padding-bottom: 7px; border-bottom: 1px solid transparent; }
.article-filter nav a.selected, .article-filter nav a:hover { color: var(--ink); border-color: var(--ink); }
.article-intro { display: flex; justify-content: space-between; margin-top: 72px; padding-bottom: 13px; color: #738477; font-size: 9px; letter-spacing: .17em; }
.article-entry { display: grid; grid-template-columns: 100px minmax(0,1fr) 185px; gap: 26px; min-height: 255px; align-items: center; border-top: 1px solid var(--line); padding: 32px 0; }
.article-entry:last-child { border-bottom: 1px solid var(--line); }
.article-entry-index { align-self: start; display: flex; flex-direction: column; gap: 15px; font-size: 10px; color: #6d8370; letter-spacing: .08em; }
.article-entry-copy h2 { font-size: clamp(20px, 1.55vw, 25px); font-weight: 400; line-height: 1.55; margin: 0 0 16px; max-width: 630px; }
.article-entry-copy p { font-size: 12px; line-height: 1.8; max-width: 540px; color: #708073; margin-bottom: 20px; }
.article-entry-copy > span { font-size: 9px; letter-spacing: .15em; border-bottom: 1px solid var(--ink); padding-bottom: 5px; }
.article-entry-image { width: 185px; aspect-ratio: 1.18; overflow: hidden; background: #e5ece2; }
.article-entry-image img { width: 100%; height: 100%; object-fit: cover; transition: transform .55s ease; }
.article-entry:hover img { transform: scale(1.05); }

/* Portfolio case studies show the craft at a deliberate, readable size. */
.detail-article.portfolio .detail-head { max-width: 1100px; margin-inline: auto; }
.detail-article.portfolio .detail-title { max-width: 610px; margin: 70px auto 48px; }
.detail-article.portfolio .detail-title h1 { font-size: clamp(26px, 2.2vw, 36px); }
.detail-article.portfolio .detail-cover { max-width: 1040px; margin-inline: auto; padding-inline: clamp(24px, 3.2vw, 48px); }
.detail-article.portfolio .detail-cover img { width: 100%; max-height: 540px; object-fit: contain; background: #e9eee7; }
.detail-article.portfolio .detail-body, .detail-article.portfolio .detail-gallery { max-width: 1100px; margin-inline: auto; }

/* Footer: one strong brand line, three quiet information columns, and a contained QR. */
.site-footer { padding: 0 clamp(24px,5vw,96px); }
.footer-frame { max-width: 1120px; margin-inline: auto; }
.footer-heading { display: grid; grid-template-columns: 1fr 1.45fr auto; gap: 7%; align-items: center; padding: 72px 0 58px; border-bottom: 1px solid #829f8c77; }
.footer-identity { display: flex; align-items: center; gap: 13px; }
.footer-identity img { width: 59px; height: 59px; object-fit: contain; filter: brightness(1.5); }
.footer-identity strong { display: block; font-size: 20px; letter-spacing: .08em; white-space: nowrap; }
.footer-identity small { display: block; margin-top: 8px; font-size: 8px; letter-spacing: .15em; color: #b8d4be; white-space: nowrap; }
.footer-prompt .micro-label { color: #b9d3bf; }
.footer-prompt p { margin: 14px 0 0; font-size: clamp(17px,1.45vw,22px); line-height: 1.6; max-width: 420px; }
.footer-contact-cta { display: flex; justify-content: space-between; align-items: center; gap: 24px; min-width: 130px; border-bottom: 1px solid #d9eadb; padding-bottom: 12px; font-size: 12px; }
.footer-columns { display: grid; grid-template-columns: 1fr 1.25fr 1fr; gap: 9%; padding: 52px 0 92px; }
.footer-column { min-width: 0; }
.footer-column .micro-label { display: block; margin-bottom: 25px; color: #a8c8af; }
.footer-column p, .footer-column > a, .footer-link-list a { display: block; font-size: 12px; line-height: 1.9; color: #edf4eb; margin: 0 0 12px; }
.footer-column > a:hover, .footer-link-list a:hover { text-decoration: underline; text-underline-offset: 4px; }
.footer-column p { color: #c5d8c6; }
.footer-link-list { display: flex; gap: 16px; flex-wrap: wrap; }
.footer-link-list a { white-space: nowrap; }
.footer-qr-link { display: flex; align-items: center; gap: 16px; margin-top: 19px; font-size: 11px; }
.footer-qr-link img { display: block; width: 76px; height: 76px; background: #fff; padding: 5px; }
.footer-qr-link small { display: block; color: #a8c8af; font-size: 8px; letter-spacing: .1em; margin-top: 7px; }
.footer-bottom { border-top: 1px solid #829f8c77; padding: 20px 0 27px; color: #a8c8af; }

@media (max-width: 900px) {
  .featured-work .work-grid { grid-template-columns: repeat(2, minmax(0,1fr)); gap: 45px 24px; }
  .service-teaser-inner { gap: 6%; }
  .footer-heading { grid-template-columns: 1fr 1.2fr; }
  .footer-contact-cta { grid-column: 2; width: max-content; }
  .footer-columns { gap: 5%; }
}
@media (max-width: 1100px) {
  .chance-social { display: none; }
}
@media (max-width: 760px) {
  .featured-work { padding-top: 75px; padding-bottom: 95px; }
  .featured-work .section-heading { margin-bottom: 32px; }
  .featured-work .work-grid { gap: 36px 16px; }
  .featured-work .work-image { aspect-ratio: 1; }
  .featured-work .work-card h3 { font-size: 14px; }
  .featured-work .work-meta { font-size: 7px; }
  .featured-work .work-visit { display: none; }
  .service-teaser { padding-top: 82px; padding-bottom: 95px; }
  .service-teaser-inner { display: block; }
  .service-statement h2 { font-size: 27px; }
  .service-list { margin-top: 66px; }
  .service-flip-card { height: 110px; }
  .service-flip-trigger { padding-inline: 18px; }
  .service-flip-back { padding-inline: 15px; }
  .service-flip-back p { font-size: 11px; }
  .page-hero { min-height: 300px; }
  .page-hero-inner { display: block; margin-top: 72px; }
  .page-hero-inner .eyebrow { display: block; }
  .page-hero-inner h1 { margin: 22px 0 12px; font-size: 31px; }
  .page-hero-inner p { max-width: 360px; font-size: 13px; }
  .about-layout { padding-top: 72px; padding-bottom: 92px; }
  .about-text h2 { font-size: 24px; }
  .article-editorial { padding-top: 50px; padding-bottom: 90px; }
  .article-filter { display: block; }
  .article-filter nav { margin-top: 24px; }
  .article-intro { margin-top: 50px; }
  .article-entry { grid-template-columns: minmax(0,1fr) 115px; gap: 14px; min-height: 200px; padding: 23px 0; }
  .article-entry-index { grid-column: 1 / -1; flex-direction: row; gap: 14px; }
  .article-entry-copy h2 { font-size: 19px; margin-bottom: 10px; }
  .article-entry-copy p { font-size: 11px; line-height: 1.6; margin-bottom: 12px; }
  .article-entry-image { width: 115px; }
  .detail-article.portfolio .detail-title { margin: 60px auto 38px; }
  .detail-article.portfolio .detail-title h1 { font-size: 27px; }
  .detail-article.portfolio .detail-cover img { max-height: 420px; }
  .site-footer { padding-inline: 24px; }
  .footer-heading { display: block; padding: 62px 0 45px; }
  .footer-prompt { margin-top: 38px; }
  .footer-contact-cta { margin-top: 30px; }
  .footer-columns { grid-template-columns: 1fr 1fr; gap: 45px 24px; padding: 48px 0 72px; }
  .footer-connect { grid-column: 1 / -1; }
  .footer-bottom { flex-wrap: wrap; }
}
@media (max-width: 480px) {
  .featured-work .work-grid { gap: 30px 12px; }
  .featured-work .work-card h3 { font-size: 13px; }
  .featured-work .work-meta span:last-child { display: none; }
  .footer-columns { display: block; }
  .footer-column { margin-bottom: 38px; }
  .footer-connect { margin-bottom: 0; }
  .article-entry { grid-template-columns: minmax(0,1fr) 92px; }
  .article-entry-image { width: 92px; }
}
@media (prefers-reduced-motion: reduce) {
  .mobile-menu:not([hidden]), .mobile-menu a, .menu-toggle span, .home-header .menu-toggle span,
  .service-flip-inner, .about-text h2.is-typing::after { transition: none !important; animation: none !important; }
}

/* Smaller navigation type; the home identity stays visible while scrolling. */
.mobile-menu a, .home-page .mobile-menu a { font-size: clamp(16px, 1.35vw, 19px); line-height: 1.65; letter-spacing: .08em; }
.home-page .mobile-menu a { padding: 13px 0; }
.home-page .home-official-logo { position: absolute; z-index: 92; }
.home-compact-logo { position: fixed; z-index: 94; top: 16px; right: clamp(22px, 2.7vw, 48px); display: grid; place-items: center; width: 47px; height: 47px; border: 1px solid #ffffffbd; border-radius: 50%; background: #f8f7f2e8; box-shadow: 0 3px 15px #172c1e17; backdrop-filter: blur(9px); -webkit-backdrop-filter: blur(9px); opacity: 0; pointer-events: none; transition: opacity .22s ease; }
.home-compact-logo.is-visible { opacity: 1; pointer-events: auto; }
.home-compact-logo img { display: block; width: 33px; height: 33px; object-fit: contain; }
.home-page.menu-open .home-compact-logo { opacity: 0; pointer-events: none; }

/* Gallery frames use measured lines and a small geometric mark. */
.chance-image, .about-real-photo { border-radius: 0; outline: 1px solid #9cae9f; outline-offset: 10px; }
.chance-image::after, .about-real-photo::before { content: ''; position: absolute; inset: 13px; z-index: 4; pointer-events: none; border: 1px solid #f8f7f29c; background: none; }
.chance-image::before { content: ''; position: absolute; z-index: 5; top: 27px; right: 27px; width: 22px; height: 22px; border: 1px solid #f8f7f2e8; border-radius: 50%; background: linear-gradient(135deg, transparent 47%, #f8f7f2e8 48%, #f8f7f2e8 52%, transparent 53%); pointer-events: none; }
.chance-image span { z-index: 5; bottom: 20px; }
.about-real-photo > span { z-index: 5; }

/* A project opens in a translucent panel rising from the lower right. */
body.portfolio-modal-open { overflow: hidden; }
.portfolio-modal[hidden] { display: none; }
.portfolio-modal { position: fixed; inset: 0; z-index: 160; }
.portfolio-modal-scrim { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; padding: 0; background: #10271b66; opacity: 0; transition: opacity .55s ease; }
.portfolio-modal.is-open .portfolio-modal-scrim { opacity: 1; }
.portfolio-modal-panel { position: absolute; right: clamp(16px, 2.5vw, 44px); bottom: clamp(16px, 2.5vh, 30px); display: flex; flex-direction: column; width: min(580px, calc(100vw - 32px)); max-height: min(88svh, 850px); overflow: auto; overscroll-behavior: contain; background: #f7faf6df; color: var(--ink); border: 1px solid #ffffffb3; border-radius: 22px; box-shadow: 0 26px 90px #0b231643; backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px); transform: translate3d(30px, calc(100% + 90px), 0); transition: transform .68s cubic-bezier(.2,.7,.2,1); }
.portfolio-modal.is-open .portfolio-modal-panel { transform: translate3d(0,0,0); }
.portfolio-modal-top { display: flex; align-items: center; gap: 15px; flex: none; min-height: 57px; padding: 0 16px 0 23px; border-bottom: 1px solid var(--line); }
.portfolio-modal-top span { font-size: 9px; letter-spacing: .18em; color: #6b846f; }
.portfolio-window-dots { display: flex; align-items: center; gap: 7px; flex: none; }
.portfolio-window-dots i { display: block; width: 11px; height: 11px; border-radius: 50%; border: 1px solid #00000017; box-shadow: inset 0 1px 1px #ffffff75; }
.portfolio-window-dots i:nth-child(1) { background: #ed6a5f; }
.portfolio-window-dots i:nth-child(2) { background: #f4be50; }
.portfolio-window-dots i:nth-child(3) { background: #61c454; }
.portfolio-modal-close { margin-left: auto; border: 1px solid #78937d70; border-radius: 50%; background: #ffffff87; width: 31px; height: 31px; color: var(--ink); font-size: 21px; line-height: 1; cursor: pointer; transition: background .2s ease, transform .2s ease; }
.portfolio-modal-close:hover { background: #ffffffd9; transform: rotate(90deg); }
.portfolio-modal-close:focus-visible { outline: 2px solid #52795b; outline-offset: 2px; }
.portfolio-modal-image { margin: 12px 13px 0; flex: none; position: relative; height: min(37svh, 330px); overflow: hidden; border-radius: 14px; background: #dfe9e0; }
.portfolio-modal-image img { display: block; width: 100%; height: 100%; object-fit: contain; }
.portfolio-modal-image figcaption { position: absolute; left: 15px; bottom: 14px; padding: 6px 9px; border-radius: 6px; background: #f7faf6e6; color: #42624e; font-size: 9px; letter-spacing: .1em; }
.portfolio-modal-content { padding: 33px 34px 43px; }
.portfolio-modal-content .micro-label { color: #728775; }
.portfolio-modal-content h2 { margin: 17px 0 8px; font-size: clamp(22px, 2vw, 27px); font-weight: 400; line-height: 1.5; }
.portfolio-modal-subtitle { margin: 0 0 23px; color: #6b7f6f; font-size: 11px; }
.portfolio-modal-excerpt { border-top: 1px solid var(--line); padding-top: 22px; margin-bottom: 16px; font-size: 14px; line-height: 1.8; }
.portfolio-modal-description p { margin: 0 0 14px; color: #596c5e; font-size: 12px; line-height: 1.95; }
@media (max-width: 760px) {
  .home-compact-logo { top: 15px; right: 17px; width: 40px; height: 40px; }
  .home-compact-logo img { width: 28px; height: 28px; }
  .mobile-menu a, .home-page .mobile-menu a { font-size: 16px; }
  .chance-image::after, .about-real-photo::before { background-size: 100% 100%; }
  .portfolio-modal-panel { right: 12px; bottom: 12px; width: calc(100vw - 24px); max-height: calc(92svh - 12px); border-radius: 20px; }
  .portfolio-modal-image { height: min(36svh, 290px); }
  .portfolio-modal-content { padding: 26px 25px 32px; }
}
@media (prefers-reduced-motion: reduce) {
  .portfolio-modal-scrim, .portfolio-modal-panel, .home-compact-logo { transition: none !important; }
}

/* Exhibition geometry: a restrained visual grammar drawn from the paper, wood,
   burgundy mark and small green sprout in the studio's existing hero photograph.
   The case photographs remain full photographs. */
:root { --paper: #f8f7f2; --ink: #263a31; --muted: #6d746d; --line: #d9d8cf; --exhibit-wine: #805151; --exhibit-olive: #778b6f; --exhibit-sand: #b5a27f; }
body, .site-header { background: var(--paper); }
.chance-hero { background: #f0f2ec; }
.chance-hero:before { background: radial-gradient(ellipse 30% 42% at 18% 20%, #e2e9e1 0, transparent 90%), radial-gradient(ellipse 32% 45% at 70% 14%, #fcfbf6 0, transparent 91%), radial-gradient(ellipse 35% 44% at 56% 78%, #e8ece4 0, transparent 91%); }
.chance-hero:after { background: linear-gradient(110deg, #f4f3ed22, transparent 53%, #fffdf45b); }
.featured-work { background: #fbfaf6; }
.service-teaser { position: relative; isolation: isolate; background: #eeeee7; }
.service-teaser::before { content: ''; position: absolute; left: max(4%, calc((100% - 1120px)/2)); bottom: 20px; width: 170px; height: 170px; background: url('/static/img/geometry-planes.svg') center / contain no-repeat; opacity: .23; pointer-events: none; }
.service-teaser-inner { position: relative; z-index: 1; }
.service-flip-trigger { background: #f8f7f2; border-color: #cbcfc3; }
.service-flip-trigger:hover { background: #fdfcf7; }
.service-number::before { content: ''; display: inline-block; width: 5px; height: 5px; margin-right: 9px; border: 1px solid var(--exhibit-wine); border-radius: 50%; vertical-align: 2px; }
.home-page .mobile-menu:not([hidden]), .mobile-menu:not([hidden]) { background: #f3f3eaf5; }
.home-page .mobile-menu a { border-color: #d3d5ca; }
.portfolio-modal-panel { background: #f8f7f1df; }

.exhibition-geometry { position: absolute; pointer-events: none; user-select: none; }
.exhibition-geometry-home { z-index: 1; left: 43%; top: 13%; width: clamp(180px, 20vw, 310px); height: auto; opacity: .62; }
.page-hero { position: relative; overflow: hidden; background: #f8f7f2; }
.page-hero-inner, .page-hero .breadcrumb { position: relative; z-index: 1; }
.exhibition-geometry-page { top: 37px; left: 53%; width: clamp(135px, 17vw, 220px); height: auto; opacity: .55; }
.listing-section { background: #fbfaf6; }
.portfolio-list .listing-card { transition: background .32s ease; }
.portfolio-list .listing-card:hover { background: #f2f1e9; }
.portfolio-list .listing-card-meta span:first-child::before { content: ''; display: inline-block; width: 8px; height: 1px; margin-right: 7px; vertical-align: 3px; background: var(--exhibit-wine); }
.sidebar-geometry { display: block; width: min(140px, 75%); height: auto; margin: 48px auto 0; opacity: .62; }
.article-entry-index::before { content: ''; width: 9px; height: 9px; border: 1px solid var(--exhibit-wine); border-radius: 50%; }
.about-text { position: relative; }
.about-text::after { content: ''; position: absolute; right: 4%; bottom: 5%; width: 92px; height: 92px; background: url('/static/img/geometry-fold.svg') center / contain no-repeat; opacity: .3; pointer-events: none; }
.detail-head { position: relative; overflow: hidden; }
.detail-head::after { content: ''; position: absolute; right: 12%; top: 18%; width: 150px; height: 150px; background: url('/static/img/geometry-planes.svg') center / contain no-repeat; opacity: .38; pointer-events: none; }
.detail-head > * { position: relative; z-index: 1; }
.site-footer { position: relative; isolation: isolate; }
.site-footer::before { content: ''; position: absolute; right: 3%; top: 8%; width: 210px; height: 210px; background: url('/static/img/geometry-footer.svg') center / contain no-repeat; opacity: .13; pointer-events: none; }
.footer-frame { position: relative; z-index: 1; }

@media (max-width: 760px) {
  .exhibition-geometry-home { left: auto; right: 13%; top: 12%; width: 135px; opacity: .37; }
  .exhibition-geometry-page { left: auto; right: 7%; top: 42px; width: 115px; opacity: .38; }
  .service-teaser::before, .sidebar-geometry, .detail-head::after { display: none; }
  .about-text::after { width: 64px; height: 64px; right: 0; bottom: 0; opacity: .2; }
  .article-entry-index::before { width: 6px; height: 6px; }
}

/* Keep the subject photographs generous within the clean framing system. */
.chance-hero { min-height: max(100svh, 1180px); }
.chance-image { left: 56%; top: clamp(470px, 49vh, 650px); width: min(30vw, 580px); aspect-ratio: .9; }

/* The inner-page heading rests on a clear baseline. Geometry lives in the
   site rhythm rather than hovering above the introduction. */
.page-hero { min-height: 270px; padding-bottom: 45px; }
.page-hero-inner { margin-top: 58px; }
.page-hero-inner .eyebrow::before { content: ''; width: 16px; height: 1px; background: var(--exhibit-wine); }

/* Portfolio photographs are the entire front face. Titles are revealed by a
   calm card turn and the click still opens the case note on the same page. */
.portfolio-grid { grid-template-columns: repeat(3, minmax(0,1fr)); gap: 23px; border: 0; }
.portfolio-grid .portfolio-flip-card { --portfolio-corner: 15px; display: block; position: relative; aspect-ratio: 1; padding: 0; border: 0; border-radius: var(--portfolio-corner); background: transparent; perspective: 1300px; }
.portfolio-list .portfolio-flip-card:hover { background: transparent; }
.portfolio-flip-card:focus-visible { outline: 2px solid var(--exhibit-wine); outline-offset: 5px; }
.portfolio-flip-inner { display: block; position: relative; width: 100%; height: 100%; border-radius: inherit; transform-style: preserve-3d; transition: transform .76s cubic-bezier(.2,.72,.18,1); }
.portfolio-flip-card:hover .portfolio-flip-inner, .portfolio-flip-card:focus-visible .portfolio-flip-inner, .portfolio-flip-card.is-flipped .portfolio-flip-inner { transform: rotateY(180deg); }
.portfolio-flip-front, .portfolio-flip-back { position: absolute; inset: 0; display: block; overflow: hidden; border-radius: inherit; backface-visibility: hidden; -webkit-backface-visibility: hidden; }
.portfolio-flip-front { background: #dddcd4; }
.portfolio-flip-front img { display: block; width: 100%; height: 100%; object-fit: cover; }
.portfolio-flip-card:hover .portfolio-flip-front img { transform: none; }
.portfolio-flip-back { transform: rotateY(180deg); background: #efede6; border: 1px solid #d7d5ca; padding: clamp(18px, 2vw, 32px); color: var(--ink); }
.portfolio-back-eyebrow { display: block; position: relative; z-index: 1; font-size: 9px; letter-spacing: .18em; color: #687969; }
.portfolio-back-eyebrow::before { content: ''; display: inline-block; width: 14px; height: 1px; margin-right: 9px; vertical-align: 3px; background: var(--exhibit-wine); }
.portfolio-back-figure { position: absolute; width: 55%; height: 55%; object-fit: contain; top: 13%; right: 7%; opacity: .52; transform: none !important; }
.portfolio-back-copy { position: absolute; z-index: 1; left: clamp(18px,2vw,32px); right: clamp(18px,2vw,32px); bottom: clamp(18px,2vw,32px); border-top: 1px solid #9eaa9b; padding-top: 14px; }
.portfolio-back-copy > span { display: block; color: #768273; font-size: 9px; letter-spacing: .12em; }
.portfolio-grid .portfolio-back-copy h2 { margin: 10px 0 16px; font-size: clamp(17px, 1.3vw, 23px); font-weight: 400; line-height: 1.5; }
.portfolio-back-copy small { display: inline-flex; align-items: center; gap: 12px; border-bottom: 1px solid var(--ink); padding-bottom: 5px; font-size: 10px; font-weight: 500; }
.portfolio-back-copy b { font-size: 14px; font-weight: 400; }
@media (max-width: 1200px) { .portfolio-grid { grid-template-columns: repeat(2, minmax(0,1fr)); } }
@media (max-width: 760px) {
  .chance-hero { min-height: 1110px; }
  .chance-image { left: auto; top: auto; width: min(83%, 420px); aspect-ratio: .82; }
  .page-hero { min-height: 250px; }
  .page-hero-inner { margin-top: 50px; }
  .portfolio-grid { gap: 16px; }
}
@media (max-width: 620px) {
  .portfolio-grid { grid-template-columns: 1fr; gap: 20px; }
  .portfolio-grid .portfolio-flip-card { max-width: 500px; width: 100%; margin-inline: auto; }
}
@media (prefers-reduced-motion: reduce) { .portfolio-flip-inner { transition: none; } }

/* The service section is an editorial index rather than four boxed buttons. */
.service-teaser { padding-top: 105px; padding-bottom: 122px; }
.service-teaser::before { content: none; }
.service-teaser-inner { max-width: 1200px; grid-template-columns: minmax(0,.8fr) minmax(0,1.2fr); gap: 11%; border-top: 1px solid #a8b7a9; padding-top: 26px; }
.service-statement { display: flex; flex-direction: column; align-items: flex-start; }
.service-statement h2 { max-width: 370px; margin: 42px 0 25px; font-size: clamp(25px, 1.85vw, 31px); line-height: 1.55; }
.service-statement p { max-width: 345px; font-size: 13px; line-height: 1.95; }
.service-statement .text-link { margin-top: 44px; }
.service-list { gap: 0; align-self: start; border-bottom: 1px solid #b0bcaf; }
.service-flip-card { height: 122px; }
.service-flip-trigger { position: relative; gap: 18px; padding: 0 5px 0 14px; border: 0; border-top: 1px solid #b0bcaf; background: transparent; }
.service-flip-trigger::before { content: ''; position: absolute; top: 22%; bottom: 22%; left: 0; width: 2px; background: var(--exhibit-wine); transform: scaleY(0); transition: transform .32s ease; }
.service-flip-trigger:hover { background: #f7f7f1; }
.service-flip-trigger:hover::before, .service-flip-card:focus-within .service-flip-trigger::before { transform: scaleY(1); }
.service-flip-trigger strong { font-size: clamp(17px, 1.3vw, 21px); letter-spacing: .045em; transition: transform .3s ease; }
.service-flip-trigger:hover strong { transform: translateX(6px); }
.service-number { width: 58px; flex: none; white-space: nowrap; }
.service-number::before { width: 4px; height: 4px; margin-right: 10px; }
.flip-symbol { width: 20px; flex: none; color: #677b6b; font-size: 18px; font-weight: 300; text-align: center; }
.service-flip-trigger:hover .flip-symbol { transform: rotate(45deg); }
.service-glyph { position: relative; display: block; flex: 0 0 54px; width: 54px; height: 54px; margin-right: 9px; color: var(--exhibit-wine); }
.service-glyph i { position: absolute; display: block; border: 1px solid currentColor; }
.service-accordion-item:nth-child(1) .service-glyph i:first-child { inset: 8px 17px 16px 5px; }
.service-accordion-item:nth-child(1) .service-glyph i:last-child { inset: 17px 6px 7px 16px; color: var(--exhibit-olive); }
.service-accordion-item:nth-child(2) .service-glyph i:first-child { inset: 6px; border-radius: 50%; }
.service-accordion-item:nth-child(2) .service-glyph i:last-child { inset: 16px; border-radius: 50%; background: #b4a18284; border: 0; }
.service-accordion-item:nth-child(3) .service-glyph i:first-child { top: 26px; left: 5px; width: 44px; height: 1px; border: 0; background: currentColor; }
.service-accordion-item:nth-child(3) .service-glyph i:last-child { top: 5px; left: 26px; width: 1px; height: 44px; border: 0; background: var(--exhibit-olive); }
.service-accordion-item:nth-child(4) .service-glyph i:first-child { inset: 11px; transform: rotate(45deg); }
.service-accordion-item:nth-child(4) .service-glyph i:last-child { inset: 22px; border-radius: 50%; background: var(--exhibit-olive); border: 0; }
.service-flip-back { gap: 20px; padding: 17px 20px; border: 0; border-top: 1px solid #b0bcaf; background: #e3e7dc; color: var(--ink); }
.service-flip-back > div > span { color: #617763; }
.service-flip-back p { color: #415748; }
.service-list .service-flip-back a { color: var(--ink); }
.service-flip-reset { color: var(--ink); }
@media (max-width: 900px) {
  .service-teaser-inner { gap: 7%; }
  .service-glyph { flex-basis: 45px; width: 45px; height: 45px; transform: scale(.83); transform-origin: center; margin-right: 0; }
}
@media (max-width: 760px) {
  .service-teaser { padding-top: 84px; padding-bottom: 90px; }
  .service-teaser-inner { display: block; }
  .service-statement h2 { margin-top: 28px; }
  .service-list { margin-top: 55px; }
  .service-flip-card { height: 118px; }
  .service-flip-trigger { padding-right: 9px; }
  .service-flip-back { padding: 13px 12px; }
}
@media (max-width: 440px) {
  .service-flip-trigger { gap: 9px; }
  .service-number { width: 46px; }
  .service-glyph { flex-basis: 34px; width: 34px; margin-right: 0; transform: scale(.65); }
  .service-flip-trigger strong { font-size: 16px; }
  .service-flip-back p { font-size: 10px; }
}

/* 206 — An editorial accordion. One service can be read at a time. */
.service-list[data-service-accordion] { display: block; border-bottom: 1px solid #aebcae; }
.service-accordion-item { border-top: 1px solid #aebcae; transition: background .35s ease; }
.service-accordion-item.is-open { background: #f6f7f0; }
.service-accordion-trigger { position: relative; display: flex; align-items: center; width: 100%; min-height: 91px; padding: 12px 14px; gap: 18px; border: 0; background: transparent; color: var(--ink); text-align: left; cursor: pointer; }
.service-accordion-trigger::before { content: ''; position: absolute; left: 0; top: 22%; bottom: 22%; width: 2px; background: var(--exhibit-wine); transform: scaleY(0); transform-origin: center; transition: transform .35s ease; }
.service-accordion-trigger:hover::before, .service-accordion-trigger:focus-visible::before, .service-accordion-item.is-open .service-accordion-trigger::before { transform: scaleY(1); }
.service-accordion-trigger:focus-visible { outline: 1px solid var(--exhibit-olive); outline-offset: -4px; }
.service-accordion-trigger strong { flex: 1; font-size: clamp(17px, 1.35vw, 21px); font-weight: 400; letter-spacing: .045em; }
.service-accordion-trigger .service-number { width: 54px; flex: none; font-size: 10px; color: #728a77; }
.service-accordion-trigger .service-glyph { transform: scale(.67); opacity: .7; margin-right: 10px; transition: transform .42s ease, opacity .42s ease; }
.service-accordion-item.is-open .service-glyph { transform: scale(.85) rotate(8deg); opacity: 1; }
.accordion-symbol { position: relative; width: 18px; height: 18px; flex: none; margin-left: 8px; color: var(--ink); }
.accordion-symbol::before, .accordion-symbol::after { content: ''; position: absolute; left: 0; top: 8px; width: 18px; height: 1px; background: currentColor; transition: transform .38s ease; }
.accordion-symbol::after { transform: rotate(90deg); }
.service-accordion-item.is-open .accordion-symbol::after { transform: rotate(0); }
.service-accordion-panel { display: grid; grid-template-rows: 0fr; visibility: hidden; transition: grid-template-rows .44s cubic-bezier(.2,.7,.2,1), visibility 0s linear .44s; }
.service-accordion-item.is-open .service-accordion-panel { grid-template-rows: 1fr; visibility: visible; transition: grid-template-rows .44s cubic-bezier(.2,.7,.2,1), visibility 0s; }
.service-accordion-content { min-height: 0; overflow: hidden; padding-inline: 86px 72px; }
.service-accordion-content p { max-width: 450px; margin: 0 0 19px; color: #52695a; font-size: 13px; line-height: 1.9; }
.service-list .service-accordion-content a, .service-list .service-accordion-content a:first-child { display: inline-flex; width: auto; align-items: center; gap: 24px; margin: 0 0 29px; padding: 0 0 7px; border: 0; border-bottom: 1px solid #6c806d; color: var(--ink); font-size: 10px; letter-spacing: .07em; }
.service-list .service-accordion-content a:hover { padding-left: 0; gap: 32px; }

/* 101 — Section progress lives at the edge of the homepage. */
html:has(.home-scroll-spy) { scroll-behavior: smooth; }
.home-scroll-spy { --spy-active: 0; position: fixed; left: clamp(10px, 1.5vw, 28px); top: 50%; z-index: 55; display: grid; grid-template-rows: repeat(4, 35px); align-items: center; transform: translateY(-50%); }
.spy-track { position: absolute; left: 5px; top: 18px; bottom: 18px; width: 1px; background: #78908065; pointer-events: none; }
.home-scroll-spy a { position: relative; display: flex; align-items: center; width: 26px; height: 35px; color: var(--ink); }
.spy-dot { position: relative; z-index: 1; display: block; width: 11px; height: 11px; border: 1px solid #7c9080; border-radius: 50%; background: #f5f6f0; transform: scale(.55); transition: transform .3s ease, background .3s ease, border-color .3s ease; }
.home-scroll-spy a[aria-current] .spy-dot { transform: scale(1); background: var(--ink); border-color: var(--ink); box-shadow: 0 0 0 4px #f3f4eecc; }
.spy-label { position: absolute; left: 24px; padding: 5px 9px; color: #42594a; background: #f7f8f3e8; font-size: 9px; letter-spacing: .1em; white-space: nowrap; opacity: 0; transform: translateX(-5px); pointer-events: none; transition: opacity .25s ease, transform .25s ease; }
.home-scroll-spy a:hover .spy-label, .home-scroll-spy a:focus-visible .spy-label { opacity: 1; transform: translateX(0); }
.home-scroll-spy a:focus-visible { outline: 1px solid var(--ink); outline-offset: 2px; }
.home-page.menu-open .home-scroll-spy { opacity: 0; pointer-events: none; }

/* 256 — Page headings use typographic depth and a precise, cursor-led crosshair. */
.page-hero { --cross-x: 72%; --cross-y: 42%; min-height: 342px; padding-top: 30px; padding-bottom: 0; border-bottom: 1px solid #ccd3c9; isolation: isolate; }
.page-hero::before { content: ''; position: absolute; left: 50%; top: 104px; bottom: 45px; width: 1px; background: #d2dacd; pointer-events: none; }
.page-hero-ghost { position: absolute; z-index: 0; right: max(4%, calc((100% - 1230px)/2)); bottom: 28px; color: #728878; font-family: 'Taipei Sans TC', sans-serif; font-size: clamp(78px, 10vw, 172px); font-weight: 700; line-height: .8; letter-spacing: -.08em; opacity: .085; white-space: nowrap; pointer-events: none; user-select: none; }
.page-hero .breadcrumb { max-width: 1220px; margin-inline: auto; font-size: 10px; letter-spacing: .16em; }
.page-hero-inner { position: relative; z-index: 1; max-width: 1220px; grid-template-columns: minmax(0,1fr) minmax(0,1fr); gap: 22px 6%; margin: 76px auto 0; align-items: end; }
.page-hero-inner .eyebrow { font-size: 10px; letter-spacing: .18em; }
.page-hero-inner h1 { font-size: clamp(30px, 2.4vw, 38px); line-height: 1.45; }
.page-hero-inner p { max-width: 360px; font-size: 14px; line-height: 1.85; }
.page-hero-baseline { position: absolute; z-index: 1; left: max(5vw, calc((100% - 1220px)/2)); right: max(5vw, calc((100% - 1220px)/2)); bottom: 20px; display: flex; align-items: center; gap: 15px; color: #8a9a8d; font-size: 8px; letter-spacing: .17em; white-space: nowrap; pointer-events: none; }
.page-hero-baseline i { flex: 1; height: 1px; background: #cbd5c9; }
.page-hero-baseline::after { content: '+'; position: absolute; left: 50%; top: -15px; color: #9cac9c; font-size: 18px; font-weight: 200; }
.page-crosshair { position: absolute; z-index: 2; left: var(--cross-x); top: var(--cross-y); width: 0; height: 0; opacity: 0; pointer-events: none; transition: opacity .18s ease; }
.page-hero.is-tracking .page-crosshair { opacity: .72; }
.crosshair-h, .crosshair-v { position: absolute; background: #718a77; }
.crosshair-h { left: -32px; top: 0; width: 64px; height: 1px; }
.crosshair-v { left: 0; top: -32px; width: 1px; height: 64px; }
.crosshair-center { position: absolute; left: -3px; top: -3px; width: 7px; height: 7px; border: 1px solid #607968; border-radius: 50%; background: var(--paper); }
.page-crosshair small { position: absolute; left: 15px; top: 16px; width: 64px; color: #496250; font-size: 8px; line-height: 1.4; letter-spacing: .08em; }
.page-crosshair b { font-weight: 400; }

/* A quiet offset frame gives the QR link the business-card detail in the reference. */
.footer-columns { grid-template-columns: minmax(0,1fr) minmax(0,1.12fr) minmax(0,1fr); gap: 7%; align-items: start; }
.footer-column .micro-label { padding-bottom: 17px; margin-bottom: 22px; border-bottom: 1px solid #819f8980; }
.footer-link-list { gap: 8px 18px; }
.footer-link-list a { margin-bottom: 0; }
.footer-qr-card { position: relative; isolation: isolate; width: 100%; max-width: 290px; margin: 20px 0 4px; padding: 16px; border: 1px solid #6e9f7d; border-radius: 17px; background: #12291f; }
.footer-qr-card::before { content: ''; position: absolute; z-index: -1; inset: -6px 6px 6px -6px; border: 1px solid #79b58e; border-radius: 18px; pointer-events: none; }
.footer-qr-kicker { display: block; padding: 0 0 12px; border-bottom: 1px solid #66877480; color: #a8d1ae; font-size: 8px; letter-spacing: .17em; }
.footer-qr-card .footer-qr-link { display: grid; grid-template-columns: 69px minmax(0,1fr); align-items: center; gap: 13px 14px; margin: 16px 0 0; color: #ecf4e9; font-size: 12px; }
.footer-qr-card .footer-qr-link img { flex: none; display: block; width: 69px; height: 69px; padding: 4px; border-radius: 5px; background: white; }
.footer-qr-card .footer-qr-link .footer-qr-name { display: block; min-width: 0; white-space: nowrap; }
.footer-qr-card .footer-qr-link small { display: flex; grid-column: 1 / -1; justify-content: space-between; gap: 8px; padding: 9px 11px; border-radius: 30px; background: #b8e7a0; color: #173322; font-size: 9px; font-weight: 600; white-space: nowrap; }
.footer-qr-card .footer-qr-link b { margin-left: 5px; font-size: 11px; font-weight: 400; }
.footer-qr-card .footer-qr-link:hover small { background: #d1f5b5; }

/* Keep the selected category on the same text baseline as every other row. */
.category-nav a { position: relative; padding: 14px 0 14px calc(var(--depth, 0) * 16px); }
.category-nav a.selected::before { position: absolute; left: -14px; top: 50%; margin: 0; transform: translateY(-50%); line-height: 1; }

@media (max-width: 760px) {
  .service-accordion-trigger { min-height: 84px; gap: 10px; padding-inline: 9px; }
  .service-accordion-trigger .service-number { width: 43px; }
  .service-accordion-trigger .service-glyph { flex-basis: 42px; width: 42px; margin-right: 0; }
  .service-accordion-content { padding-inline: 63px 20px; }
  .home-scroll-spy { left: auto; right: 14px; top: 48%; }
  .spy-label { left: auto; right: 26px; transform: translateX(5px); }
  .page-hero { min-height: 315px; }
  .page-hero::before { left: auto; right: 9%; top: 83px; bottom: 52px; }
  .page-hero-ghost { right: 4%; bottom: 55px; font-size: clamp(63px, 16vw, 100px); opacity: .07; }
  .page-hero-inner { display: block; margin-top: 68px; }
  .page-hero-inner h1 { margin: 17px 0 10px; font-size: 30px; }
  .page-hero-inner p { font-size: 12px; }
  .page-hero-baseline { left: 24px; right: 24px; bottom: 17px; }
  .page-hero-baseline span:last-of-type { display: none; }
  .page-crosshair { display: none; }
  .footer-qr-card { max-width: 260px; }
  .category-nav a.selected::before { left: 7px; }
  .category-nav a { padding: 10px 15px; }
  .category-nav a.selected { padding-left: 20px; }
}
@media (max-width: 440px) {
  .service-accordion-trigger strong { font-size: 16px; }
  .service-accordion-trigger .service-glyph { display: none; }
  .service-accordion-content { padding-inline: 59px 16px; }
  .home-scroll-spy { right: 9px; }
  .home-scroll-spy a { width: 22px; }
  .page-hero-ghost { font-size: 16vw; }
}
@media (prefers-reduced-motion: reduce) {
  html:has(.home-scroll-spy) { scroll-behavior: auto; }
  .service-accordion-item, .service-accordion-panel, .accordion-symbol::after, .spy-dot, .spy-label, .page-crosshair { transition: none !important; }
}

@media (min-width: 761px) {
  .chance-hero { min-height: max(100svh, 1480px); }
  .chance-image { left: 54%; width: min(42vw, 812px); }
  .exhibition-geometry-home { left: 41%; width: clamp(210px, 24vw, 360px); opacity: .68; }
}

/* 006 — Two quiet heartbeats lift the title while thin rings radiate behind it. */
.featured-work .section-heading h2[data-heartbeat], .service-statement h2[data-heartbeat] { position: relative; isolation: isolate; font-weight: 700; transform-origin: 50% 50%; animation: heading-heartbeat 4.4s ease-in-out infinite; }
[data-heartbeat]::before, [data-heartbeat]::after { content: ''; position: absolute; z-index: -1; left: 50%; top: 50%; width: 60%; min-width: 160px; max-width: 350px; aspect-ratio: 1; border: 1px solid #7da78988; border-radius: 50%; opacity: 0; transform: translate(-50%, -50%) scale(.35); pointer-events: none; animation: heading-heartbeat-ring 4.4s ease-out infinite; }
[data-heartbeat]::after { animation-delay: .2s; }
@keyframes heading-heartbeat {
  0%, 4%, 17%, 100% { transform: scale(1); }
  6% { transform: scale(1.045); }
  9% { transform: scale(1); }
  12% { transform: scale(1.025); }
}
@keyframes heading-heartbeat-ring {
  0%, 5% { opacity: 0; transform: translate(-50%, -50%) scale(.35); }
  8% { opacity: .48; }
  23%, 100% { opacity: 0; transform: translate(-50%, -50%) scale(1.9); }
}

/* 062 — Each title character flips into place like a restrained station board. */
.page-hero-inner [data-split-flap] { min-height: 1.4em; white-space: nowrap; }
.split-flap-cell { position: relative; display: inline-block; width: 1.12em; height: 1.19em; margin-right: .04em; vertical-align: -.13em; border: 1px solid #cbd7ca; border-radius: 3px; background: #f2f4ed; perspective: 500px; }
.split-flap-cell::after { content: ''; position: absolute; z-index: 3; left: 0; right: 0; top: 50%; height: 1px; background: #c2d0c2; pointer-events: none; }
.split-flap-flipper { position: absolute; inset: 0; display: block; transform-style: preserve-3d; transition: transform .68s cubic-bezier(.24,.7,.22,1); transition-delay: calc(var(--flap-index) * 105ms); }
[data-split-flap].is-settled .split-flap-flipper { transform: rotateX(-180deg); }
.split-flap-face { position: absolute; inset: 0; display: grid; place-items: center; backface-visibility: hidden; -webkit-backface-visibility: hidden; line-height: 1; }
.split-flap-face-front { color: #799382; }
.split-flap-face-back { transform: rotateX(180deg); color: var(--ink); }

/* 107 — Fine grid lines brighten only near a desktop pointer. */
.chance-hero { --spot-x: 50%; --spot-y: 30%; }
.hero-spotlight-grid { position: absolute; z-index: 1; inset: 0; overflow: hidden; pointer-events: none; }
.hero-spotlight-grid::before, .hero-spotlight-grid::after { content: ''; position: absolute; inset: 0; pointer-events: none; background-size: 64px 64px; }
.hero-spotlight-grid::before { background-image: linear-gradient(to right, #8da99442 1px, transparent 1px), linear-gradient(to bottom, #8da99442 1px, transparent 1px); opacity: .32; -webkit-mask-image: linear-gradient(to bottom, transparent 2%, #000 20%, #000 84%, transparent 100%); mask-image: linear-gradient(to bottom, transparent 2%, #000 20%, #000 84%, transparent 100%); }
.hero-spotlight-grid::after { background-image: linear-gradient(to right, #5d9470b3 1px, transparent 1px), linear-gradient(to bottom, #5d9470b3 1px, transparent 1px), radial-gradient(circle 190px at var(--spot-x) var(--spot-y), #d4e9d199, transparent 100%); background-size: 64px 64px, 64px 64px, 100% 100%; opacity: 0; -webkit-mask-image: radial-gradient(circle 245px at var(--spot-x) var(--spot-y), #000 8%, transparent 100%); mask-image: radial-gradient(circle 245px at var(--spot-x) var(--spot-y), #000 8%, transparent 100%); transition: opacity .28s ease; }
.chance-hero.is-spotlit .hero-spotlight-grid::after { opacity: .72; }

/* Let the image gradient reach the photograph's edge, avoiding a dark seam. */
.chance-image span { bottom: 0; padding-bottom: 28px; background: linear-gradient(to top, #0008, transparent 100%); }

/* 287 — Circular social links fill upward and exchange their icons. */
.social-icon-defs { position: absolute; width: 0; height: 0; overflow: hidden; }
.footer-link-list { align-items: center; gap: 12px 16px; }
.footer-link-list .social-icon-link { display: inline-flex; align-items: center; gap: 8px; margin: 0; color: #edf4eb; text-decoration: none; }
.footer-link-list .social-icon-link:hover { text-decoration: none; }
.social-icon-disc { position: relative; display: block; flex: none; width: 43px; height: 43px; overflow: hidden; border: 1px solid #8db99a; border-radius: 50%; transition: transform .35s cubic-bezier(.2,.75,.2,1), border-color .35s ease; }
.social-icon-fill { position: absolute; inset: 0; border-radius: inherit; background: #b8e7a0; transform: translateY(100%); transition: transform .42s cubic-bezier(.2,.75,.2,1); }
.social-icon-glyph { position: absolute; left: 10px; top: 10px; width: 21px; height: 21px; color: #eaf4e7; transition: transform .42s cubic-bezier(.2,.75,.2,1); }
.social-icon-glyph-second { color: #173322; transform: translateY(44px); }
.social-icon-label { font-size: 11px; white-space: nowrap; transition: color .3s ease; }
.social-icon-link:hover .social-icon-disc, .social-icon-link:focus-visible .social-icon-disc { transform: translateY(-3px); border-color: #b8e7a0; }
.social-icon-link:hover .social-icon-fill, .social-icon-link:focus-visible .social-icon-fill { transform: translateY(0); }
.social-icon-link:hover .social-icon-glyph-first, .social-icon-link:focus-visible .social-icon-glyph-first { transform: translateY(-44px); }
.social-icon-link:hover .social-icon-glyph-second, .social-icon-link:focus-visible .social-icon-glyph-second { transform: translateY(0); }
.social-icon-link:focus-visible { outline: 1px solid #b8e7a0; outline-offset: 4px; border-radius: 3px; }

@media (max-width: 760px) {
  .hero-spotlight-grid::before { opacity: .19; background-size: 54px 54px; }
  .hero-spotlight-grid::after { display: none; }
  .split-flap-cell { width: 1.08em; height: 1.17em; }
}
@media (prefers-reduced-motion: reduce) {
  [data-heartbeat], [data-heartbeat]::before, [data-heartbeat]::after { animation: none; }
  .split-flap-flipper, .hero-spotlight-grid::after, .social-icon-disc, .social-icon-fill, .social-icon-glyph { transition: none; }
}

/* An editorial subtitle keeps the selected-work heading from feeling isolated. */
.featured-work .section-heading .work-subtitle { display: block; max-width: 460px; margin: 13px 0 0; color: #66796c; font-size: 12px; line-height: 1.8; letter-spacing: .025em; }
.featured-work .work-image { border-radius: 10px; }
.chance-about h1, .chance-about h2 { font-weight: 700; }
.chance-social a { width: 70px; }
.chance-social a:last-child { font-size: 9px; letter-spacing: 0; font-variant-numeric: tabular-nums; }

/* 238 — White-base, white-light breathing buttons across light and dark sections. */
a.neon-cta, .about-text a.neon-cta, .service-statement a.neon-cta, .footer-heading a.neon-cta {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  width: max-content;
  min-width: 142px;
  max-width: 100%;
  margin-top: 28px;
  padding: 12px 16px;
  border: 1px solid #fff;
  border-radius: 11px;
  background: #ffffffd9;
  color: #233c2e;
  font-size: 11px;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
  box-shadow: 0 1px 5px #ffffff62, inset 0 0 8px #ffffff6b;
  animation: none;
  transition: background .32s ease, transform .32s ease, box-shadow .32s ease;
}
a.neon-cta:hover, a.neon-cta:focus-visible,
.about-text a.neon-cta:hover, .service-statement a.neon-cta:hover, .footer-heading a.neon-cta:hover {
  gap: 24px;
  transform: translateY(-2px);
  background: #fff;
  box-shadow: 0 0 12px #fff, 0 0 30px #fff, 0 0 58px #ffffffc9;
  animation: none;
}
a.neon-cta:focus-visible { outline: 1px solid #315d43; outline-offset: 4px; }
a.neon-cta span { margin-left: 7px; font-size: 15px; line-height: 1; }
.featured-work .section-heading .neon-cta { margin-top: 0; flex: none; }
.about-text .neon-cta { margin-top: 28px; }
.footer-heading .neon-cta { margin-top: 0; }

/* Articles and service details are read as pages, so their images sit within the text column. */
.detail-article.articles .detail-cover, .detail-article.service-experience .detail-cover { max-width: 960px; margin-inline: auto; padding-inline: clamp(24px, 3.2vw, 48px); }
.detail-article.articles .detail-cover img, .detail-article.service-experience .detail-cover img { display: block; width: auto; max-width: 100%; max-height: 480px; height: auto; object-fit: contain; margin-inline: auto; border-radius: 8px; }
.detail-article.articles .detail-body, .detail-article.service-experience .detail-body, .detail-article.articles .detail-gallery, .detail-article.service-experience .detail-gallery { max-width: 1100px; margin-inline: auto; }
.detail-article.articles + .related-section .related-grid, .detail-article.service-experience + .related-section .related-grid { max-width: 1120px; margin-inline: auto; }
.detail-article.articles + .related-section .related-grid a, .detail-article.service-experience + .related-section .related-grid a { min-width: 0; max-width: 340px; }
.detail-article.articles + .related-section .related-grid img, .detail-article.service-experience + .related-section .related-grid img { aspect-ratio: 1.35; max-height: 260px; border-radius: 8px; }
@media (max-width: 760px) {
  .featured-work .section-heading .work-subtitle { max-width: 32ch; font-size: 11px; }
  .detail-article.articles .detail-cover img, .detail-article.service-experience .detail-cover img { max-height: 360px; }
  .detail-article.articles + .related-section .related-grid a, .detail-article.service-experience + .related-section .related-grid a { max-width: none; }
}
@media (prefers-reduced-motion: reduce) { a.neon-cta { animation: none; } }

/* A centered, still holographic glass window. The color is in the material,
   with no tilt, foil sweep, or glitter. Keep the page width stable on open. */
html { scrollbar-gutter: stable; }
.portfolio-modal { display: grid; place-items: center; padding: clamp(12px, 3vh, 30px); }
.portfolio-modal-scrim { background: #10271b75; transition-duration: .28s; }
.portfolio-modal .portfolio-modal-panel {
  position: relative;
  inset: auto;
  width: min(580px, 100%);
  max-height: min(88svh, 850px);
  margin: auto;
  opacity: 0;
  transform: translateY(16px) scale(.98);
  transition: opacity .3s ease, transform .36s cubic-bezier(.2,.7,.2,1);
  background: linear-gradient(142deg, #ffffffed 1%, #edf7f3e8 46%, #f4f0f9e6 100%);
  border: 1px solid #ffffffec;
  box-shadow: 0 26px 90px #0b231653, 0 0 0 1px #afd9cf81, 0 0 30px #b5cce188, inset 0 0 22px #ffffff9e;
  scrollbar-width: thin;
  scrollbar-color: #98b4a4 transparent;
}
.portfolio-modal .portfolio-modal-panel::-webkit-scrollbar { width: 5px; }
.portfolio-modal .portfolio-modal-panel::-webkit-scrollbar-track { background: transparent; }
.portfolio-modal .portfolio-modal-panel::-webkit-scrollbar-thumb { border-radius: 8px; background: #98b4a4a8; }
.portfolio-modal.is-open .portfolio-modal-panel { opacity: 1; transform: none; }
.portfolio-modal .portfolio-modal-top { background: linear-gradient(90deg, #ffffff8f, #d9efe396, #ece8fa70); }
.portfolio-modal .portfolio-modal-image { height: min(32svh, 270px); }
.portfolio-modal .portfolio-modal-content { padding: 24px 30px 30px; }
.portfolio-modal .portfolio-modal-close { position: relative; display: block; flex: none; width: 34px; height: 34px; padding: 0; font-size: 0; line-height: 0; }
.portfolio-modal .portfolio-modal-close::before, .portfolio-modal .portfolio-modal-close::after { content: ''; position: absolute; left: 50%; top: 50%; width: 14px; height: 1.5px; border-radius: 2px; background: #263a31; transform: translate(-50%, -50%) rotate(45deg); }
.portfolio-modal .portfolio-modal-close::after { transform: translate(-50%, -50%) rotate(-45deg); }
@media (max-width: 760px) {
  .portfolio-modal { padding: 12px; }
  .portfolio-modal .portfolio-modal-panel { width: 100%; max-height: calc(92svh - 24px); }
}
@media (prefers-reduced-motion: reduce) {
  .portfolio-modal .portfolio-modal-panel { transform: none; transition: none; }
}
