/* The photograph, the desktop layout and the phone layout share one image. */
:root {
  --motion-ease: cubic-bezier(.22,.74,.19,1);
  --silver: #8d9ba4;
  scroll-padding-top: 100px;
}
header {
  position: sticky;
  top: 0;
  background: rgba(252,248,243,.96);
  z-index: 8;
}
header::after {
  content: "";
  position: absolute;
  inset: auto 0 -1px;
  height: 2px;
  background: linear-gradient(90deg, #354856, #a5b3b9, #87725a);
  transform-origin: left;
  transform: scaleX(var(--read-progress,0));
  pointer-events: none;
}
.mobile-contact { display: none; }
.bar nav a { position: relative; }
.bar nav a::after {
  content: ""; height: 1px; background: currentColor;
  position: absolute; inset: auto 0 -5px;
  transform: scaleX(0); transform-origin: left;
  transition: transform .3s var(--motion-ease);
}
.bar nav a:is(:hover, :focus-visible, [aria-current])::after { transform: scaleX(1); }
/* All hover affordances have a keyboard or touch equivalent. */
.project-image, .plans article, .btn { isolation:isolate; position:relative; }
.project-image { border-radius:3px; }
.project-image::after, .btn::after {
  content:""; position:absolute; pointer-events:none; inset:0;
  background:linear-gradient(108deg, transparent 27%, #ffffff26 48%, transparent 68%);
  transform:translateX(-105%);
}
.btn { overflow:hidden; }
.project-line .more { transition:transform .37s var(--motion-ease),background .25s,color .25s; }
.project-button:is(:hover,:focus-visible) .more { transform:rotate(90deg); background:var(--ink); color:white; }
.project-button:is(:hover,:focus-visible) .project-image img { transform:scale(1.055); }
.project-image img { transition:transform .65s var(--motion-ease); }
.plans article {
  background:linear-gradient(135deg,rgba(255,255,255,.45),transparent 80%);
  transition:transform .36s var(--motion-ease), box-shadow .36s, border-color .36s;
}
.plans article:nth-child(2) { background:linear-gradient(130deg,#e1e9ed,#eef1ef); }
.plans article::before {
  content:""; position:absolute; top:-1px; left:-1px; right:-1px; height:2px;
  background:linear-gradient(90deg,#6a7b86,#d8dfe0,#7a8a94);
  transform:scaleX(0); transform-origin:left; transition:transform .55s var(--motion-ease);
}
.plans article:focus-within::before { transform:scaleX(1); }
.steps > div { position:relative; }
.steps > div::before {
  position:absolute; content:""; left:0; right:0; top:-1px;
  height:1px; background:linear-gradient(90deg,#637886,transparent);
  transform-origin:left; transform:scaleX(0);
}
.contact { background:radial-gradient(ellipse at 10% 110%,#3d515d 0%,transparent 55%),#283644; }
.contact input,.contact textarea { transition:background .25s, border-color .25s; }
.contact :is(input,textarea):focus { background:#3c4f5d; border-color:#c3d1d6; }
.dialog-contact { margin-top:1.4rem; }
dialog:modal { border-radius:4px; box-shadow:0 32px 96px #0e192c50; }
@keyframes lift-in { from{opacity:0; transform:translateY(16px)} to{opacity:1; transform:none} }
@keyframes lift-line { from{opacity:0; transform:translateY(.29em)} to{opacity:1; transform:none} }
@keyframes sweep { from{transform:translateX(-105%) skewX(-13deg)} to{transform:translateX(105%) skewX(-13deg)} }
@keyframes appear-dialog { from{opacity:0; transform:translateY(12px) scale(.98)} to{opacity:1; transform:none} }
@keyframes draw-line { from{transform:scaleX(0)} to{transform:scaleX(1)} }
@media(prefers-reduced-motion:no-preference) {
  .hero h1 > span { animation:lift-line .66s var(--motion-ease) backwards; }
  .hero h1 > span:nth-child(2) { animation-delay:70ms; }
  .hero h1 > span:nth-child(3) { animation-delay:140ms; }
  .hero-copy > .intro, .hero-copy > .actions { animation:lift-in .65s .14s var(--motion-ease) backwards; }
  .view-enter { animation:lift-in .65s var(--motion-ease) both; }
  .steps > .view-enter::before { animation:draw-line .9s .05s var(--motion-ease) forwards; }
  dialog[open] { animation:appear-dialog .3s var(--motion-ease); }
  dialog[open]::backdrop { animation:appear-dialog .25s ease; }
  :is(.project-button,.btn):focus-visible .project-image::after, .btn:focus-visible::after { animation:sweep .7s ease-out; }
  @media(hover:hover) and (pointer:fine) {
    .project-button:hover .project-image::after, .btn:hover::after { animation:sweep .75s ease-out; }
    .plans article:hover { transform:translateY(-5px); box-shadow:0 14px 26px -20px #2c394b70; border-color:#9aa8ad; }
    .plans article:hover::before { transform:scaleX(1); }
  }
}
@media (max-width:740px) {
  :root { scroll-padding-top:76px; }
  .mobile-contact { display:block; }
  .bar nav a::after { display:none; }
}
@media (forced-colors:active) {
  .hero h1 em { -webkit-text-fill-color:currentColor; background:none; }
  .scene-switch button[aria-pressed="true"], .device-switch button[aria-pressed="true"] { outline:2px solid Highlight; outline-offset:-3px; color:ButtonText; }
}
@media print {
  header { position:static; }
  .demo-bar, .glass-light { display:none; }
}

/* A luminous thread connects the physical place with its digital reflection. */
.hero {
  display:block; position:relative; isolation:isolate; overflow:clip; padding:0;
  color:#f8f6f1;
  background:radial-gradient(ellipse at 87% 14%,#3b4e56 0%,transparent 49%),
             radial-gradient(ellipse at 28% 103%,#20323f 2%,transparent 45%),#101c27;
}
.ribbon-field { position:absolute; inset:0; width:100%; height:100%; pointer-events:none; z-index:-1; }
.hero-layout {
  display:grid; grid-template-columns:.87fr 1.13fr; gap:clamp(35px,5vw,86px);
  align-items:center; padding-block:clamp(50px,5.3vw,88px) clamp(52px,5.7vw,94px);
}
.hero-copy { position:relative; z-index:1; }
.hero .kicker { color:#c2d4d8; }
.hero .kicker i { background:linear-gradient(90deg,transparent,#cad9de); width:43px; }
.hero h1 { font-size:clamp(4.15rem,6.45vw,7.3rem); color:#faf8f3; line-height:.97; }
.hero h1 > span { display:block; }
.hero h1 em {
  color:#c8dce2; background:linear-gradient(102deg,#d9e8e9 4%,#93abb9 25%,#edf6ef 41%,#e0c49f 57%,#a7c5d0 76%,#e7eceb 96%);
  background-size:165% 100%; background-position:var(--ink-position,42%) 0;
  background-clip:text; -webkit-background-clip:text; -webkit-text-fill-color:transparent;
}
.hero .intro { color:#d5dde0; }
.hero .actions .btn { border-color:#e4e6df; background:#eceee7; color:#192734; }
.hero .actions .btn:hover { background:white; }
.hero .actions .under { color:#f4f4ec; border-color:#8e9ca4; }
.showcase { --split:48%; min-width:0; position:relative; }
.visual-stage {
  position:relative; isolation:isolate; aspect-ratio:1.28; overflow:hidden; border-radius:8px;
  background:#24313b; box-shadow:0 32px 68px -24px #02070fc2, 0 0 0 1px #cfdbdf47;
}
.place-photo,.place-photo img,.web-reveal { display:block; position:absolute; inset:0; width:100%; height:100%; }
.place-photo img { object-fit:cover; object-position:55% 52%; }
.web-reveal {
  clip-path:inset(0 calc(100% - var(--split)) 0 0);
  background:radial-gradient(ellipse at 10% 12%,#9fb5b8,transparent 58%),
             linear-gradient(132deg,#73858b 3%,#dae0d9 35%,#9c8b78 70%,#66727a 100%);
}
.demo-window {
  position:absolute; inset:10% 7% 13%; display:grid; grid-template-rows:16% minmax(0,1fr) 12%; overflow:hidden;
  color:#32291e; background:#f7f1e7; border-radius:4px;
  border:1px solid #fff9; box-shadow:0 16px 27px -10px #1c232bbd,0 1px 5px #30383e52;
  transform:perspective(950px) rotateY(-7deg) rotateX(3deg) rotateZ(-2.2deg);
  transition:inset .6s var(--motion-ease),transform .6s var(--motion-ease),border-radius .6s;
}
.demo-nav,.demo-footer { display:flex; align-items:center; justify-content:space-between; padding-inline:6%; gap:4%; }
.demo-nav > span:first-child { font:italic clamp(18px,2.1vw,36px)/1 var(--serif); letter-spacing:-.06em; white-space:nowrap; }
.demo-nav-links,.demo-footer { font:500 clamp(9px,.8vw,14px)/1.2 var(--sans); white-space:nowrap; }
.mock-hero { position:relative; min-height:0; overflow:hidden; }
.mock-hero picture,.mock-hero img { display:block; height:100%; width:100%; }
.mock-hero img { object-fit:cover; object-position:65% 54%; }
.demo-title {
  display:flex; flex-direction:column; justify-content:end; position:absolute; inset:0;
  padding:0 6% 6%; color:#fff9ed;
  background:linear-gradient(32deg,#251b13d4,transparent 85%);
}
.demo-title > span { font:400 clamp(29px,3.8vw,63px)/.95 var(--serif); letter-spacing:-.055em; }
.demo-title small { font:500 clamp(9px,.75vw,13px)/1.2 var(--sans); letter-spacing:.12em; text-transform:uppercase; margin-bottom:.62em; }
.demo-footer i { height:1px; flex:1; background:#b9aa96; }
.mock-label {
  position:absolute; bottom:3%; left:4%; right:4%; text-align:center;
  text-transform:uppercase; font:650 .7rem/1.45 var(--sans); letter-spacing:.14em; color:#172632;
}
[data-device="mobile"] .demo-window {
  inset:5% max(14%,calc((100% - 207px)/2)) 11%; border:5px solid #303537; border-radius:22px;
  transform:perspective(900px) rotateY(6deg) rotateZ(2deg);
}
[data-device="mobile"] .demo-nav,[data-device="mobile"] .demo-footer { justify-content:center; }
[data-device="mobile"] .demo-nav > span:first-child { font-size:clamp(16px,1.8vw,25px); }
[data-device="mobile"] :is(.demo-nav-links,.demo-footer i,.demo-footer span:last-child) { display:none; }
[data-device="mobile"] .demo-title > span { font-size:clamp(21px,2.1vw,34px); }
[data-device="mobile"] .demo-title small { font-size:9px; }
[data-device="mobile"] .demo-footer { font-size:10px; }
.mirror-edge {
  pointer-events:none; position:absolute; top:0; bottom:0; left:var(--split); width:2px; margin-left:-1px;
  background:linear-gradient(0deg,#a8becd,#fff9e7 35%,white 65%,#abbcc1); box-shadow:0 0 8px #fff3da,0 0 24px #f6dcb788;
}
.mirror-edge::before {
  content:""; position:absolute; top:0; bottom:0; right:0; width:clamp(6px,1.1vw,18px);
  background:linear-gradient(90deg,transparent,#bbd8db38 38%,#fdf1cf5e 75%,#c2e6ff85); mix-blend-mode:screen;
}
.mirror-grip {
  position:absolute; top:50%; left:0; transform:translate(-50%,-50%); display:flex; align-items:center;
  justify-content:center; gap:7px; height:44px; width:44px; border-radius:50%;
  border:1px solid #fff9; color:white; background:#19303bd4; box-shadow:0 3px 14px #0005;
  transition:scale .18s,background .18s;
}
.mirror-grip i { width:7px; height:7px; border:solid currentColor; border-width:1.5px 1.5px 0 0; transform:rotate(45deg); }
.mirror-grip i:first-child { transform:rotate(-135deg); }
.showcase[data-limit="start"] .mirror-grip { margin-left:23px; }
.showcase[data-limit="end"] .mirror-grip { margin-left:-23px; }
#mirror-range {
  position:absolute; inset:0; z-index:2; width:100%; height:100%; margin:0; padding:0;
  appearance:none; -webkit-appearance:none; opacity:0; cursor:ew-resize; touch-action:pan-y;
}
#mirror-range::-webkit-slider-runnable-track { height:100%; background:transparent; }
#mirror-range::-webkit-slider-thumb { -webkit-appearance:none; width:1px; height:100%; }
#mirror-range::-moz-range-track { height:100%; background:transparent; }
#mirror-range::-moz-range-thumb { border:0; width:1px; height:100%; }
.visual-stage:has(#mirror-range:focus-visible) { outline:3px solid #ffe4a0; outline-offset:4px; }
.visual-stage:has(#mirror-range:active) .mirror-grip { background:#17343d; scale:1.1; }
.demo-bar { display:flex; align-items:center; justify-content:space-between; flex-wrap:wrap; gap:.55rem .85rem; padding-top:.9rem; }
.demo-bar[hidden],#mirror-range[hidden] { display:none; }
.demo-guide { color:#d8e1e3; font:italic 1.04rem/1.3 var(--serif); }
.demo-tools,.scene-switch,.device-switch { display:flex; align-items:center; }
.demo-tools { gap:.45rem; }
.scene-switch,.device-switch { padding:2px; border:1px solid #9aadb454; border-radius:20px; background:#101f2ac2; }
.demo-bar button { appearance:none; border:0; border-radius:18px; background:transparent; color:#d7e2e4; cursor:pointer; }
.scene-switch button { padding:0 .7rem; height:36px; font:530 .87rem var(--sans); }
.device-switch button { display:grid; place-items:center; height:36px; width:36px; }
.demo-bar button:is(:hover,[aria-pressed="true"]) { color:#122631; background:#d8e2df; }
.demo-bar button:focus-visible { outline-color:#ffdea4; }
.monitor,.phone { position:relative; border:1.5px solid currentColor; border-radius:2px; }
.monitor { width:18px; height:13px; margin-bottom:2px; }
.monitor::after { content:""; position:absolute; top:100%; left:4px; right:4px; height:3px; border-bottom:1.5px solid currentColor; }
.phone { width:11px; height:18px; border-radius:3px; }
.phone::after { content:""; position:absolute; bottom:1px; left:3px; width:3px; height:1px; background:currentColor; }
.project-button { perspective:1000px; }
.project-image { transform:rotateX(var(--tilt-x,0deg)) rotateY(var(--tilt-y,0deg)); transition:transform .28s ease-out,box-shadow .3s; }
.project-image.rak .project-place { display:block; position:absolute; inset:0; width:100%; height:100%; object-fit:cover; opacity:0; z-index:1; }
.project-image::before {
  content:""; pointer-events:none; position:absolute; z-index:2; inset:0; opacity:0; transition:opacity .45s;
  background:radial-gradient(ellipse at var(--light-x,50%) var(--light-y,45%),#fff9e747,transparent 56%);
}
.project-image.upshow { background:radial-gradient(ellipse at 2% 12%,#b5cad7,transparent 58%),linear-gradient(128deg,#d4d7e7,#b1a3ba 72%,#e2cedb); }
.project-image.upshow img { transform:perspective(850px) rotateY(-9deg) rotateZ(-2deg) scale(.99); box-shadow:0 9px 22px #32264444; }
.project-button:is(:hover,:focus-visible) .project-image.upshow img { transform:perspective(850px) rotateY(0deg) rotateZ(0deg) scale(1.035); }
@media(hover:hover) and (pointer:fine) and (prefers-reduced-motion:no-preference) {
  .project-button:hover .project-image { box-shadow:0 15px 25px -16px #2b354d77; }
  .project-button:hover .project-image::before { opacity:1; }
  .project-button:hover .project-place { opacity:1; clip-path:polygon(0 0,38% 0,29% 100%,0 100%); animation:salon-reveal .6s var(--motion-ease); }
}
@keyframes salon-reveal { from{clip-path:polygon(0 0,0 0,0 100%,0 100%)} to{clip-path:polygon(0 0,38% 0,29% 100%,0 100%)} }
@media (max-width:1050px) and (min-width:741px) { .demo-bar { align-items:start; } .demo-guide { flex-basis:100%; } .hero-layout { gap:28px; } }
@media (max-width:740px) {
  .hero-layout { grid-template-columns:1fr; gap:24px; padding-block:32px 34px; }
  .hero h1 { font-size:clamp(3.9rem,11.8vw,5.5rem); margin-block:.83rem .95rem; }
  .hero .actions { margin-top:1.02rem; }
  .visual-stage { aspect-ratio:1.37; }
  .demo-bar { align-items:center; }
  .demo-guide { font-size:.94rem; }
  .demo-title > span { font-size:clamp(25px,6.8vw,43px); }
  [data-device="mobile"] .demo-window { inset:4% max(12%,calc((100% - clamp(117px,33vw,180px))/2)) 10%; border-width:3px; border-radius:15px; }
  [data-device="mobile"] .demo-title > span { font-size:clamp(18px,4.2vw,28px); }
  [data-device="mobile"] .demo-title small { font-size:8px; }
  .mock-label { font-size:.58rem; bottom:2%; }
}
@media (max-width:510px) {
  .demo-guide { flex-basis:100%; }
  .demo-bar { gap:.45rem; }
}
@media(prefers-reduced-motion:reduce) {
  .project-image { transform:none; }
  .demo-window,.project-image img { transition:none; }
}
@media(forced-colors:active) { .hero h1 em { -webkit-text-fill-color:currentColor; } }
dialog[open] { animation:none; }
@keyframes project-unfold {
  from { clip-path:polygon(0 0,10% 0,0 100%,0 100%); }
  to { clip-path:polygon(0 0,110% 0,100% 100%,0 100%); }
}
@media (prefers-reduced-motion:no-preference) {
  .project-grid .view-enter .project-image { animation:project-unfold .75s var(--motion-ease); }
  .project-grid article:nth-child(2).view-enter .project-image { animation-delay:.08s; animation-fill-mode:backwards; }
}
