html { scrollbar-gutter: stable; }
.expression-eyebrow { margin-bottom: 17px; color: var(--red); font: 500 12px/1.7 var(--font-body); letter-spacing: .12em; }
.site-nav .nav-projects { padding: .65rem 0; border: 0; background: transparent; color: inherit; font-size: inherit; line-height: inherit; text-align: left; cursor: pointer; }

/* A small, non-interactive layer carries the first image's movement down the page. */
.petal-field { position: fixed; inset: 82px 0 0; z-index: 6; overflow: hidden; pointer-events: none; opacity: .88; transition: opacity 1s; contain: layout paint; }
.petal-field.is-quiet { opacity: .38; }
.petal-field.is-quiet .petal:nth-child(n+7):not(.petal--seal) { visibility: hidden; }
.petal { position: absolute; top: -48px; left: var(--x); width: var(--size); height: var(--size); opacity: 0; animation: petal-fall var(--duration) var(--delay) linear infinite; will-change: transform,opacity; }
.petal img { display: block; width: 100%; height: 100%; object-fit: contain; animation: petal-turn var(--turn) var(--delay) ease-in-out infinite alternate; }
.petal--seal { filter: saturate(.82); }
.petal--seal img { animation-name: seal-turn; }
.motion-toggle { position: fixed; top: 96px; right: 22px; z-index: 30; display: inline-flex; align-items: center; gap: 9px; min-height: 36px; padding: 7px 12px; border: 1px solid rgba(72,93,87,.22); border-radius: 20px; color: #354f4c; background: rgba(245,244,238,.94); font-size: 10px; cursor: pointer; }
.motion-icon { font-size: 12px; width: 12px; text-align: center; }
.motion-toggle:disabled { cursor: default; opacity: .75; }
html[data-motion="paused"] .petal,html[data-motion="paused"] .petal img,
html.dialog-open .petal,html.dialog-open .petal img,
html.motion-suspended .petal,html.motion-suspended .petal img { animation-play-state: paused; }
@keyframes petal-fall {
  0% { transform: translate3d(0,-20px,0) rotate(var(--rotation)); opacity: 0; }
  9% { opacity: .8; }
  48% { opacity: .66; }
  72% { opacity: .3; }
  90%,100% { transform: translate3d(var(--drift),calc(100vh + 20px),0) rotate(calc(var(--rotation) + 70deg)); opacity: 0; }
}
@keyframes petal-turn { from { transform: rotate(-22deg) scaleX(.64); } to { transform: rotate(38deg) scaleX(1); } }
@keyframes seal-turn { from { transform: rotate(-12deg); } to { transform: rotate(21deg); } }

.service-showcase { position: relative; isolation: isolate; overflow: hidden; width: 100%; padding: 75px clamp(24px,6.5vw,120px) 25px; color: #f5f4eb; background: #213e49; }
.service-scenery { position: absolute; inset: 0; z-index: -2; }
.service-scenery img { width: 100%; height: 100%; object-fit: cover; object-position: 65% 43%; }
.service-scenery::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg,rgba(18,42,51,.9),rgba(18,42,51,.59) 65%,rgba(18,42,51,.65)); }
.service-intro { display: grid; grid-template-columns: 1fr 3fr; gap: 24px; padding-bottom: 52px; }
.service-intro .section-index { color: #c7d9d2; padding-top: 10px; }
.service-intro h2 { font-size: clamp(32px,3.6vw,48px); margin-bottom: 19px; }
.service-intro > div > p { color: #d6e2dc; font-size: 13px; line-height: 1.85; margin: 0; }
.service-gallery { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); border-block: 1px solid rgba(230,239,224,.42); }
.service-directory-link { display:flex; align-items:center; justify-content:space-between; gap:1.5rem; padding:2rem 0; border-bottom:1px solid rgba(230,239,224,.42); color:#f7f5ee; }
.service-directory-link strong { display:block; font-size:1rem; }
.service-directory-link a { display:inline-flex; align-items:center; justify-content:space-between; gap:2rem; min-height:54px; padding: .9rem 1.2rem; border:1px solid #f7f5ee; background:#f7f5ee; color:#173b45; font-size:.9rem; font-weight:600; text-decoration:none; transition:background .2s,color .2s; }
.service-directory-link a span { font-size:1.2rem; }
.service-directory-link a:hover, .service-directory-link a:focus-visible { background:transparent; color:#fff; outline:2px solid #fff; outline-offset:3px; }
.service-directory-link p { margin:.5rem 0 0; font-size:.78rem; color:#d7e3df; }
@media (max-width:759px) { .service-directory-link { align-items:flex-start; flex-direction:column; } }
.service-tile { display: flex; flex-direction: column; align-items: stretch; position: relative; min-width: 0; min-height: 370px; padding: 27px 23px 23px; color: #f5f4eb; text-align: left; border: 0; border-right: 1px solid rgba(230,239,224,.32); background: rgba(20,47,55,.16); cursor: pointer; transition: background-color .35s; }
.service-tile:first-child { padding-left: 0; }
.service-tile:last-child { border-right: 0; padding-right: 0; }
.service-tile:hover,.service-tile:focus-visible { background: rgba(20,47,55,.68); }
.service-tile:focus-visible { outline: 2px solid #f1d7ac; outline-offset: -3px; }
.tile-index { font-size: 9px; letter-spacing: .08em; color: #c0d4ce; }
.tile-spacer { flex: 1; min-height: 45px; }
.service-tile strong { font: 500 clamp(17px,1.5vw,22px)/1.6 var(--font-body); letter-spacing: -.035em; margin-bottom: 17px; }
.tile-description { font-size: 14px; line-height: 1.85; color: #e7ece3; }
.tile-tags { margin-top: 23px; font-size: 10px; color: #bdd3cb; line-height: 1.9; }
.tile-link { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin-top: 27px; font-size: 11px; }
.tile-link > span { font-size: 24px; transition: transform .35s; }
.service-tile:hover .tile-link > span { transform: translate(3px,-3px); }
.service-signature { margin: 21px 0 0; color: #c4d5ce; font: 400 12px/1.8 var(--font-display); text-align: right; letter-spacing: .06em; }

html.dialog-open { overflow: hidden; }
.project-dialog { width: min(1060px,calc(100% - 48px)); max-width: none; max-height: calc(100svh - 72px); margin: auto; padding: 0; border: 0; color: var(--ink); background: var(--paper-light); box-shadow: 0 28px 90px rgba(9,28,36,.35); overscroll-behavior: contain; }
.project-dialog[open] { animation: dialog-arrive .35s ease both; }
.project-dialog::backdrop { background: rgba(13,32,40,.7); }
.dialog-bar { position: sticky; top: 0; z-index: 2; display: flex; justify-content: space-between; align-items: center; gap: 20px; min-height: 66px; padding: 12px 34px; border-bottom: 1px solid var(--line); background: var(--paper-light); }
.dialog-bar > span { font-size: 9px; letter-spacing: .1em; }
.dialog-close { display: flex; align-items: center; gap: 17px; min-width: 70px; min-height: 44px; padding: 0; border: 0; color: var(--ink); background: transparent; cursor: pointer; font-size: 12px; }
.dialog-close > span:last-child { font-size: 29px; font-weight: 400; }
.dialog-content { padding: 35px 40px 26px; }
.dialog-content > h2 { font-size: clamp(29px,3vw,40px); margin-bottom: 15px; }
.dialog-intro { max-width: 690px; color: #556a65; font-size: 14px; word-break: keep-all; }
.dialog-scope { display: flex; flex-wrap: wrap; gap: 7px 18px; padding-bottom: 28px; color: #566d66; font-size: 11px; }
.dialog-scope span + span::before { content: "·"; margin-right: 12px; }
.dialog-case-heading { margin: 0 0 18px; padding-top: 21px; border-top: 1px solid var(--line); font-size: 13px; font-weight: 500; }
.project-dialog .project-list { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 20px; }
.project-dialog .project-list[data-count="1"] { grid-template-columns: minmax(0,580px); }
.project-dialog .project-list[data-count="2"] { grid-template-columns: repeat(2,minmax(0,1fr)); }
.project-dialog .project-card[hidden] { display: none; }
.project-dialog .project-card__visual { min-height: 210px; }
.project-dialog .project-list[data-count="1"] .project-card__visual { min-height: 235px; }
.project-dialog .placeholder-copy strong { font-size: 23px; line-height: 1.5; }
.project-dialog .status { font-size: 10px; }
.project-dialog .project-card__body h3 { font-size: 16px; line-height: 1.7; }
.project-dialog .project-card__body small { font-size: 11px; }
.dialog-bottom { display: flex; justify-content: space-between; align-items: center; gap: 22px; margin-top: 31px; padding-top: 19px; border-top: 1px solid var(--line); }
.dialog-bottom p { margin: 0; color: var(--muted); font-size: 12px; }
.dialog-inquiry { display: inline-flex; align-items: center; gap: 28px; min-height: 44px; color: var(--red); font-size: 12px; }
.dialog-inquiry span { font-size: 20px; }
@keyframes dialog-arrive { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: translateY(0); } }
@media (min-width: 760px) { .site-nav .nav-projects { font-size: .78rem; padding: .6rem 0; } }
@media (max-width: 1099px) {
  .service-gallery { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .service-tile,.service-tile:first-child,.service-tile:last-child { padding: 24px; min-height: 330px; }
  .service-tile:nth-child(2) { border-right: 0; }
  .service-tile:nth-child(-n+2) { border-bottom: 1px solid rgba(230,239,224,.32); }
  .service-tile strong { font-size: 21px; }
}
@media (max-width: 759px) {
  .site-nav .nav-projects { font-size: 14px; padding: 12px 0; }
  .petal-field { top: 74px; }
  .petal:nth-child(3n):not(.petal--seal) { display: none; }
  .petal:nth-child(odd) { left: 1%; --drift: 5px !important; }
  .petal:nth-child(even) { left: 95%; --drift: -8px !important; }
  .motion-toggle { top: 84px; right: 12px; min-height: 34px; padding: 6px 10px; font-size: 9px; }
  .expression-eyebrow { font-size: 11px; margin-bottom: 12px; }
  .service-showcase { padding: 54px 24px 24px; }
  .service-intro { grid-template-columns: 1fr; gap: 10px; padding-bottom: 30px; }
  .service-intro h2 { font-size: 32px; }
  .service-intro > div > p { font-size: 12px; }
  .service-scenery img { object-position: 73% center; }
  .service-scenery::after { background: linear-gradient(180deg,rgba(19,43,51,.81),rgba(19,43,51,.63)); }
  .service-tile,.service-tile:first-child,.service-tile:last-child { min-height: 305px; padding: 20px 14px; }
  .service-tile:nth-child(odd) { padding-left: 0; }
  .service-tile:nth-child(even) { padding-right: 0; }
  .tile-index { font-size: 8px; letter-spacing: 0; }
  .tile-spacer { min-height: 34px; }
  .service-tile strong { font-size: 16px; word-break: keep-all; margin-bottom: 12px; }
  .tile-description { font-size: 12px; }
  .tile-tags { font-size: 9px; margin-top: 16px; }
  .tile-link { font-size: 9px; gap: 8px; margin-top: 17px; }
  .tile-link > span { font-size: 19px; }
  .service-signature { font-size: 10px; text-align: left; }
  .project-dialog { width: calc(100% - 24px); max-height: calc(100svh - 28px); }
  .dialog-bar { min-height: 61px; padding: 8px 20px; }
  .dialog-bar > span { font-size: 8px; letter-spacing: .03em; }
  .dialog-close { gap: 10px; min-width: 58px; font-size: 11px; }
  .dialog-content { padding: 27px 23px 23px; }
  .dialog-content > h2 { font-size: 27px; }
  .dialog-intro { font-size: 13px; }
  .dialog-scope { font-size: 10px; gap: 6px 10px; padding-bottom: 22px; }
  .dialog-scope span + span::before { margin-right: 7px; }
  .project-dialog .project-list,.project-dialog .project-list[data-count="1"],.project-dialog .project-list[data-count="2"] { grid-template-columns: 1fr; gap: 30px; }
  .project-dialog .project-card__visual,.project-dialog .project-list[data-count="1"] .project-card__visual { min-height: 225px; }
  .project-dialog .placeholder-copy strong { font-size: 21px; }
  .dialog-bottom { display: block; margin-top: 26px; }
  .dialog-bottom p { margin-bottom: 10px; }
}
@media (max-width: 359px) { .service-showcase { padding-inline: 20px; } .service-tile strong { font-size: 15px; } .tile-description { font-size: 11px; } }
@media (prefers-reduced-motion: reduce) {
  .petal-field { display: none; }
  .petal,.petal img { animation: none !important; }
  .project-dialog[open] { animation: none; }
  .petal-field,.service-tile,.tile-link > span { transition: none; }
}
