/* Native high-resolution images remain unfiltered; only the phone body tilts. */
.hero{grid-template-columns:minmax(0,.8fr) minmax(420px,1.2fr);align-items:center;gap:28px}
.hero-visual{height:auto;min-width:0;display:flex;flex-direction:column;align-items:center;gap:22px}
.product-studio-label{position:static;align-self:stretch;inset:auto;padding-inline:6px}
.hero-visual .engineering-scene{position:relative;inset:auto;width:100%;overflow:visible}
.product-screen-studio{width:100%;padding:14px 7px 24px}
.product-device-pair{display:flex;align-items:flex-end;justify-content:center;gap:28px;width:100%;max-width:720px;margin-inline:auto;isolation:isolate;direction:ltr}
.studio-phone,.portfolio-phone{display:block;position:relative;flex:0 0 25%;width:25%;max-width:190px;min-width:0;margin-bottom:4px;padding:6px;border-radius:25px;background:linear-gradient(130deg,#d5c49c 0%,#363b41 15%,#111419 45%,#77766f 80%,#bc9b5e 100%);box-shadow:1px 2px 0 #c9b98a,-1px -1px 0 #555c63,5px 5px 0 #101317,10px 15px 24px #0005;transform:perspective(1100px) rotateY(-10deg) rotateZ(3deg);transform-origin:center bottom;z-index:2}
.product-device-pair>.studio-phone{transform:perspective(1400px) rotateY(-6deg) rotateZ(2deg)}
.studio-phone-screen,.portfolio-phone img{display:block;width:100%;height:auto;max-height:none;border:0;border-radius:20px;object-fit:contain;transform:none;filter:none;box-shadow:none;background:#12171b}
.device-laptop{position:relative;display:block;flex:0 1 61.56%;min-width:0;max-width:436.05px;margin-bottom:4px;filter:none;transform:none}
.device-laptop-lid{position:relative;display:block;padding:11px 7px 5px;border:1px solid #8a9299;border-bottom-color:#2a3036;border-radius:11px 11px 4px 4px;background:linear-gradient(130deg,#40474e,#101418 26%,#0d1013 82%,#394047);box-shadow:0 0 0 1px #171b20,0 2px 0 #c3c9cc,0 12px 26px #0003}
.device-laptop-camera{position:absolute;top:4px;left:50%;width:4px;height:4px;border-radius:50%;background:#090d12;box-shadow:0 0 0 1px #454c52,inset 1px 1px 1px #4a7482}
.device-laptop-screen{display:block;width:100%;height:auto;object-fit:contain;border:1px solid #080c10;border-radius:2px;background:#10151b;transform:none;filter:none;box-shadow:none}
.device-laptop-hinge{position:relative;display:block;width:83%;height:5px;margin-inline:auto;background:linear-gradient(#080c10,#474f57 65%,#11161b);border-radius:1px}
.device-laptop-deck{position:relative;display:block;height:80px;margin-inline:-4%;border:1px solid #a5adb3;border-top-color:#edf1f3;border-radius:2px 2px 12px 12px;background:linear-gradient(115deg,#9faab3,#eef1f3 25%,#c3cdd4 65%,#8a98a4);box-shadow:0 4px 0 #66717b,0 5px 0 #20282f,0 14px 22px #0006;clip-path:polygon(4% 0,96% 0,100% 89%,99% 100%,1% 100%,0 89%)}
.device-laptop-deck::before{content:'';position:absolute;inset:4px 8% auto;height:53px;background:linear-gradient(#65717b,#85919b);border:1px solid #9ca7b0;border-radius:4px;box-shadow:inset 0 1px 2px #26323e66,0 1px 0 #f4f7f9}
.device-laptop-deck::after{content:'';position:absolute;inset:auto 42% 0;height:3px;background:#56616b;border-radius:4px 4px 0 0;box-shadow:0 -1px 0 #dce3e9}
.device-laptop-keyboard{position:relative;display:grid;gap:1.5px;margin:7px 9% 0;direction:ltr}
.device-key-row{display:grid;grid-template-columns:repeat(14,minmax(0,1fr));gap:2px;height:7px}
.device-key{display:flex;align-items:center;justify-content:center;min-width:0;overflow:hidden;border:1px solid #172029;border-radius:2px;background:linear-gradient(#3d4853,#242f3a);box-shadow:inset 0 1px 0 #62707d,0 1px 0 #111a22;color:#f3f6f8;font:500 4.5px/1 Arial,sans-serif;letter-spacing:0;text-shadow:0 1px 0 #1118}
.device-key-row-function{grid-template-columns:1.3fr repeat(12,minmax(0,1fr)) 1.3fr}
.device-key-row-function .device-key{font-size:4px;background:linear-gradient(#46525e,#2b3743)}
.device-key-row-number{grid-template-columns:repeat(13,minmax(0,1fr)) 1.7fr}
.device-key-row-qwerty{grid-template-columns:1.4fr repeat(13,minmax(0,1fr))}
.device-key-row-home{grid-template-columns:1.7fr repeat(11,minmax(0,1fr)) 2fr}
.device-key-row-shift{grid-template-columns:2fr repeat(10,minmax(0,1fr)) 1.3fr 1fr 1fr}
.device-key-row-modifiers{grid-template-columns:1fr 1.3fr 1fr 1fr 5.4fr 1fr 1.3fr 1fr 1fr 1fr}
.device-laptop-trackpad{display:block;width:26%;height:14px;margin:5px auto 0;border:1px solid #87949e;border-radius:3px;background:linear-gradient(130deg,#dbe2e7,#b5c1ca);box-shadow:inset 0 1px 1px #f4f6f96b,0 1px 0 #e6edf1}
.hero-products{position:static;grid-template-columns:repeat(2,minmax(0,1fr));width:min(100%,480px);inset:auto;gap:8px}
.hero-products button{font-size:13px;min-height:48px;padding:10px 14px;justify-content:center}
.product-studio-action{position:static;inset:auto}
.hero-visual .visual-bottomline{position:static;inset:auto;align-self:stretch;justify-content:space-between;font-size:9px;gap:16px}
.products .product-grid{--gallery-gap:42px;display:grid;grid-template-columns:none;grid-auto-flow:column;grid-auto-columns:calc((100% - var(--gallery-gap))/2);gap:var(--gallery-gap);max-width:1040px;margin-inline:auto;padding:24px 24px 30px;overflow-x:auto;scroll-snap-type:x mandatory;scroll-padding-inline:24px;overscroll-behavior-inline:contain;scrollbar-color:#b8a375 #ffffff14;scrollbar-width:thin}
.products .product-card{min-width:0;width:100%;max-width:none;scroll-snap-align:start}
.products .product-art .portfolio-phone{flex:none;width:200px;max-width:70%;margin:0 auto}
.product-gallery-controls{display:flex;justify-content:flex-end;gap:10px;max-width:1040px;margin:0 auto 8px;padding-inline:24px}
.product-gallery-controls button{display:grid;place-items:center;width:42px;height:42px;border:1px solid #bfa57070;border-radius:50%;background:#ffffff08;color:var(--gold);font-size:21px}
.product-gallery-controls button:hover:not(:disabled){border-color:var(--gold);background:#ffffff12}
.product-gallery-controls button:disabled{opacity:.32;cursor:default}
.product-gallery-controls button:focus-visible,.products .product-grid:focus-visible{outline:2px solid var(--gold);outline-offset:4px}
[dir=rtl] .product-gallery-controls span{transform:scaleX(-1)}
.products .product-art{aspect-ratio:auto;display:block;width:100%;overflow:visible;background:transparent;border:0;padding:12px 7px 22px;cursor:pointer}
.products .product-art::before,.products .product-art::after{display:none}
.products .product-art img,.products .product-art:hover img{width:100%;height:auto;transform:none;filter:none;box-shadow:none;z-index:auto}
.products .product-art .studio-phone-screen{border-radius:20px}
.products .product-art .device-laptop-screen{border-radius:2px}
.products .product-meta,.products .product-description{max-width:530px;margin-inline:auto}
.products .product-meta{margin-top:22px;align-items:center;gap:20px}
.products .product-description{font-size:14px;line-height:1.8;margin-top:12px}
.products .product-art:focus-visible{outline:2px solid var(--gold);outline-offset:9px;border-radius:16px}
/* Detail views use the real app's 390px logical width. Keeping this screen flat
 * makes small UI text readable; the homepage retains its showcase angle. */
#product-detail .product-device-pair{margin-block:30px 22px;flex-direction:column;align-items:center}
#product-detail .device-laptop{flex:none;width:100%;max-width:520px}
#product-detail .studio-phone{order:-1;flex:none;width:390px;max-width:100%;margin-top:0;transform:none}
#product-detail .detail-original-image-link{display:inline-block;margin-block:8px 20px;color:inherit;text-underline-offset:4px;line-height:1.6}
#product-detail .detail-original-image-link:focus-visible{outline:2px solid var(--gold);outline-offset:5px;border-radius:3px}
#product-detail>.button{display:table}
.capability-panel{grid-template-columns:1fr 120px}
.capability-screenshot{display:none}
.capability-logo{width:90px;height:90px}
/* Keep footer links above the fixed assistant, including wrapped and RTL rows. */
.site-footer{padding-block-end:calc(112px + env(safe-area-inset-bottom,0px))}
@media(min-width:1600px){.hero-visual{height:auto}.product-device-pair{gap:32px}.studio-phone{max-width:210px}}
@media(max-width:1100px){
  .hero{grid-template-columns:minmax(0,.8fr) minmax(390px,1.2fr);gap:20px}
  .hero-visual{height:auto}
  .products .product-grid{--gallery-gap:30px}
  .product-device-pair{gap:24px}
  .device-laptop-deck{height:78px}
  .device-laptop-trackpad{height:12px}
}
@media(max-width:900px){
  .hero{grid-template-columns:1fr}
  .hero-visual{height:auto;max-width:660px;width:100%;gap:22px;margin-inline:auto}
  .products .product-card{width:100%;max-width:none;margin-inline:0}
}
@media(max-width:700px){.products .product-grid{grid-auto-columns:100%;--gallery-gap:24px}.products .product-art .portfolio-phone{width:190px;max-width:75%}}
@media(max-width:520px){
  .hero{padding-inline:6vw}
  .hero-visual{gap:20px}
  .product-screen-studio{padding-inline:4px}
  .product-device-pair{gap:20px;align-items:center;flex-direction:column}
  .device-laptop{flex:none;width:80.37%;max-width:324.9px;margin-bottom:0}
  .studio-phone,.portfolio-phone{flex:none;width:150px;max-width:43%;padding:5px;border-radius:24px;margin-top:12px}
  .studio-phone-screen,.portfolio-phone img,.products .product-art .studio-phone-screen{border-radius:19px}
  .hero-products button{font-size:12px;min-height:46px;padding:9px}
  .hero-visual .visual-bottomline{font-size:8px;line-height:1.7}
  .products.section-space{padding-inline:6vw}
  .products .product-art{padding-inline:4px}
  .products .product-description{font-size:13px}
  #product-detail .studio-phone{max-width:100%;width:390px}
  .capability-panel{grid-template-columns:1fr}
  .capability-media{display:none}
  .assistant-launcher{width:46px;min-height:46px;padding:10px;gap:0}
  .assistant-launcher>[data-i18n]{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}
  .assistant-launcher .assistant-dot{position:absolute;inset-block-start:8px;inset-inline-end:7px}
}
