@font-face {
  font-family:Montserrat;
  src:url('assets/montserrat.ttf') format('truetype');
  font-style:normal;
  font-weight:100 900;
  font-display:swap;
}

:root {
  --espresso:#3a1500;
  --paper:#f3ecdf;
  --cream:#ffffe3;
  --brown:#442411;
  --body:Montserrat,Arial,sans-serif;
  /* Shared by the artwork and fixed header; never scale to the whole monitor. */
  --layout-width:min(100vw,1200px,177.7778svh);
}

* {
  box-sizing:border-box;
}

html {
  scroll-behavior:smooth;
}

/* Desktop cards also snap with native keyboard/link navigation. Taller content
   remains scrollable; the wheel enhancement lives in landing.js. */
@media(min-width:821px) and (hover:hover) and (pointer:fine) {
  html {
    scroll-snap-type:y mandatory;
    scrollbar-gutter:stable;
  }
  html:has(dialog[open]) {
    overflow:hidden;
  }
  .panel,.footer {
    scroll-snap-align:start;
    scroll-snap-stop:always;
  }
}

body {
  margin:0;
  color:var(--espresso);
  background:var(--paper);
  font-family:var(--body);
}

a {
  color:inherit;
}

button {
  font:inherit;
  color:inherit;
  cursor:pointer;
}

button,a {
  -webkit-tap-highlight-color:transparent;
}

button {
  border:0;
}

figure,p,h1,h2 {
  margin:0;
}

img {
  display:block;
  max-width:100%;
}

svg {
  display:block;
  width:100%;
  height:100%;
}

a:focus-visible,button:focus-visible {
  outline:3px solid #b6742e;
  outline-offset:6px;
}

.symbol-library {
  position:absolute;
  width:0;
  height:0;
  overflow:hidden;
}

.skip-link {
  position:fixed;
  z-index:20;
  left:16px;
  top:16px;
  background:var(--paper);
  padding:12px;
  transform:translateY(-200%);
}

.skip-link:focus {
  transform:none;
}

/* Keep the original desktop proportions inside a bounded, height-aware canvas.
   cqw belongs to this canvas, not to the full browser width. */
.panel {
  position:relative;
  /* Each card fills the visible screen even when its artwork is smaller.
     dvh follows Safari's retracting toolbar; content may still grow taller. */
  min-height:100vh;
  min-height:100dvh;
  display:flex;
  align-items:center;
  overflow:hidden;
  isolation:isolate;
}

.canvas {
  width:100%;
  max-width:var(--layout-width);
  margin:0 auto;
  flex-shrink:0;
  aspect-ratio:1366/768;
  position:relative;
  container-type:inline-size;
}


.paper {
  background-color:var(--paper);
  background-image:url('assets/paper.svg');
}

.dark {
  background:var(--brown);
  color:var(--cream);
}

.dark::before {
  content:'';
  position:absolute;
  inset:0;
  background:radial-gradient(ellipse at 55% 65%,#673a1b14,transparent 72%);
  pointer-events:none;
}

.brand {
  position:relative;
  display:block;
  width:10.6%;
  aspect-ratio:2.78;
  overflow:hidden;
}

.brand img,.inline-brand img {
  position:absolute;
  width:166.667%;
  max-width:none;
  height:auto;
  left:-33.333%;
  top:-78.5%;
}

.dark .brand img,.dark .inline-brand img {
  filter:brightness(0) invert(1);
}

.button {
  display:flex;
  align-items:center;
  justify-content:center;
  background:var(--espresso);
  color:var(--cream);
  border-radius:100px;
  text-decoration:none;
  font-family:Arial,sans-serif;
  font-weight:700;
  border:1px solid transparent;
  min-height:44px;
}

.button:hover {
  background:#54270c;
}

.button:active {
  transform:translateY(1px);
}












.copy {
  position:absolute;
  left:5.7%;
  width:51.3%;
  z-index:2;
  font-size:clamp(16px,1.85cqw,22px);
  line-height:1.35;
  font-weight:400;
  letter-spacing:-.02cqw;
}

.copy h2 {
  font-size:2.8cqw;
  font-weight:750;
  letter-spacing:.11cqw;
  line-height:1.15;
  margin-bottom:1.2cqw;
}

.intro-copy {
  top:38.2%;
}

.intro-copy h2 {
  white-space:nowrap;
}

.phone {
  background:#151514;
  border-radius:3.4cqw;
  padding:.8cqw;
  box-shadow:.8cqw 1.5cqw 2cqw #0006;
  overflow:hidden;
}

.phone img {
  width:100%;
  height:100%;
  object-fit:fill;
  border-radius:2.7cqw;
}

.showcase-phone {
  position:absolute;
  left:64.5%;
  top:19.5%;
  width:17.8%;
  height:62%;
}

.inline-brand {
  position:relative;
  display:inline-block;
  width:3em;
  height:1.02em;
  overflow:hidden;
  vertical-align:-.15em;
}

.inline-brand img {
  top:-77%;
}

.explanation-copy {
  top:29.7%;
  width:52%;
}

.explanation-copy h2 {
  font-size:3cqw;
  letter-spacing:0;
}

.explanation-copy h2 .inline-brand {
  width:2.65em;
}

.explanation-copy strong {
  font-weight:730;
}

.orders-art {
  position:absolute;
  inset:0 0 0 63%;
  overflow:hidden;
  /* Fade inside every edge: the bounded canvas must not leave a dark rectangle
     on wide screens, and the last card must fade before the next section. */
  background:radial-gradient(ellipse 50% 50% at 50% 50%,#55534c65,#55534c38 50%,transparent 100%);
  -webkit-mask-image:linear-gradient(transparent,#000 22%,#000 70%,transparent 100%);
  mask-image:linear-gradient(transparent,#000 22%,#000 70%,transparent 100%);
}

.order-card {
  position:relative;
  width:76%;
  height:27.5%;
  margin:0 0 5% 5%;
  padding:2.2cqw 2.6cqw;
  border-radius:4.5cqw;
  background:linear-gradient(125deg,#e4e3dc44,#6a6c6933);
  border:1px solid #f7f4e155;
  box-shadow:inset 0 0 1.5cqw #ffffff21;
  backdrop-filter:blur(9px);
  transform:translateY(-45%);
}

.order-card::before {
  content:'';
  position:absolute;
  inset:0;
  border-radius:inherit;
  background-image:url('assets/paper.svg');
  opacity:.18;
  pointer-events:none;
}

.status-lights {
  display:flex;
  gap:.6cqw;
  margin:0 0 2cqw;
}

.status-lights i {
  width:2.1cqw;
  height:2.1cqw;
  border-radius:50%;
  background:#ff575f;
}

.status-lights i:nth-child(2) {
  background:#ffbd00;
}

.status-lights i:nth-child(3) {
  background:#00c823;
}

.order-line {
  display:flex;
  gap:1cqw;
  align-items:center;
  white-space:nowrap;
}

.order-line>span {
  display:block;
  flex-shrink:0;
  background:white;
  border-radius:50%;
  width:5.7cqw;
  height:5.7cqw;
  padding:.5cqw;
  color:#696963;
}

.order-line strong {
  font-size:1.95cqw;
  letter-spacing:.13cqw;
}

.order-line p {
  font-size:1.9cqw;
  margin-top:.4cqw;
  letter-spacing:.1cqw;
}

.about-copy {
  top:31.5%;
  width:51%;
}

.about-copy h2 {
  font-size:2.8cqw;
  white-space:nowrap;
}

.about-copy .inline-brand {
  width:2.8em;
}

.team-photos {
  position:absolute;
  left:64%;
  top:28%;
  width:28%;
  height:47%;
}

.polaroid {
  position:absolute;
  background:#f4f0e7;
  padding:1.15cqw 1.15cqw 4.3cqw;
  width:77%;
  height:100%;
  box-shadow:0 .2cqw .5cqw #0003;
}

.polaroid img {
  width:100%;
  height:100%;
  object-fit:cover;
  object-position:center 40%;
}

.polaroid::after {
  content:'';
  position:absolute;
  top:-1.7cqw;
  left:30%;
  width:40%;
  height:3cqw;
  background:#e8e5dddf;
  clip-path:polygon(2% 4%,96% 0,98% 15%,100% 35%,96% 52%,100% 72%,97% 100%,0 95%,3% 72%,0 48%,3% 21%);
  transform:rotate(4deg);
}

.photo-back {
  left:0;
  top:2%;
  height:70%;
  transform:rotate(-12deg);
  opacity:.65;
  filter:brightness(.7);
}

.photo-back img {
  filter:blur(5px);
  object-position:10% 25%;
}

.photo-front {
  left:21%;
  top:0;
  transform:rotate(5deg);
}

.contact-action {
  position:absolute;
  left:23.4%;
  top:26.6%;
  width:53.1%;
  text-align:center;
}

.contact-action h2 {
  font-size:2.6cqw;
  font-weight:450;
  margin-bottom:1.9cqw;
  white-space:nowrap;
}

.whatsapp-button {
  width:100%;
  height:8.7cqw;
  gap:2cqw;
  font-size:1.85cqw;
  justify-content:flex-start;
  padding-left:4.1cqw;
}

.whatsapp-button svg {
  width:4cqw;
  height:4cqw;
}

.devices {
  position:absolute;
  left:33.7%;
  top:54.5%;
  width:33%;
  height:34%;
  filter:drop-shadow(.3cqw 1cqw .55cqw #0003);
}

.desktop-device {
  position:absolute;
  width:65%;
  height:86%;
  left:35%;
  top:0;
}

.desktop-screen {
  height:80%;
  background:#10100f;
  padding:1cqw .7cqw 1.2cqw;
  border-radius:1cqw .9cqw .3cqw .3cqw;
  overflow:hidden;
}

.desktop-screen img {
  width:100%;
  height:100%;
  object-fit:cover;
  object-position:left top;
}

.desktop-neck {
  height:17%;
  width:17%;
  background:#171716;
  margin:auto;
}

.desktop-foot {
  height:3%;
  width:47%;
  background:#171716;
  margin:auto;
  border-radius:.2cqw;
}

.tablet-device {
  position:absolute;
  width:34%;
  height:88%;
  top:6%;
  left:0;
  background:#151514;
  padding:1cqw .7cqw .8cqw;
  border-radius:.7cqw;
  overflow:hidden;
}

.tablet-device::before {
  content:'';
  position:absolute;
  top:.25cqw;
  left:48%;
  width:.25cqw;
  height:.25cqw;
  background:#aaa;
  border-radius:50%;
}

.tablet-device img {
  width:100%;
  height:100%;
  object-fit:cover;
  object-position:top;
}

.mini-phone {
  position:absolute;
  left:28%;
  top:41%;
  width:19%;
  height:63%;
  border-radius:1cqw;
  padding:.35cqw;
  box-shadow:.25cqw .4cqw .5cqw #0007;
}

.mini-phone img {
  border-radius:.7cqw;
}

.footer {
  position:relative;
  background:var(--espresso);
}

.footer-main {
  position:relative;
  width:min(100%,1000px);
  margin:auto;
  display:grid;
  grid-template-columns:1.2fr .8fr 1.2fr;
  align-items:center;
  gap:32px;
  padding:36px 40px;
}

.footer-brand .brand {
  width:150px;
}

.footer-brand p {
  font-size:14px;
  margin-top:8px;
}

.footer-main nav {
  display:flex;
  flex-direction:column;
  justify-content:center;
  height:100%;
  gap:6px;
  border-inline:1px solid #d8c7b8;
  padding:0 28px;
  font-size:14px;
}

.footer-main address {
  font-style:normal;
  display:flex;
  flex-direction:column;
  gap:16px;
  font-size:14px;
}

.footer-main address>* {
  display:flex;
  align-items:center;
  gap:14px;
}

.footer-main address svg {
  width:20px;
  height:20px;
  flex:none;
}

.footer-main address button {
  background:none;
  padding:0;
  text-align:left;
  font-size:inherit;
}

.footer-main address button span {
  text-decoration:underline;
}

.footer-main address>a {
  text-decoration:none;
  overflow-wrap:anywhere;
}

.footer-bottom {
  border-top:1px solid #b79d8066;
  text-align:center;
  padding:20px 6%;
  font-size:12px;
  line-height:1.6;
}

.footer-bottom nav {
  margin:8px 0;
}

.legal-footer-note {
  max-width:72ch;
  margin:10px auto 0;
}

.footer a:hover,.footer button:hover {
  text-decoration:underline;
  text-underline-offset:3px;
}

dialog {
  border:1px solid #9a806a;
  border-radius:22px;
  padding:32px;
  color:var(--espresso);
  background:var(--paper);
  max-width:min(440px,calc(100vw - 32px));
  box-shadow:0 24px 90px #0004;
}

dialog::backdrop {
  background:#26170f66;
  backdrop-filter:blur(10px);
}

dialog h2 {
  font-size:23px;
  padding-right:24px;
}

dialog p {
  margin:18px 0 24px;
  line-height:1.5;
  font-size:16px;
}

dialog .button {
  padding:12px 28px;
  font-size:16px;
}

.dialog-close {
  position:absolute;
  right:14px;
  top:10px;
  background:none;
  font-size:30px;
  width:36px;
  height:36px;
}

/* The header follows the same bounded composition as the sections. */
.site-nav {
  position:fixed;
  z-index:10;
  right:calc((100% - var(--layout-width)) / 2 + var(--layout-width) * .075);
  top:clamp(16px,2.49vw,30px);
  width:calc(var(--layout-width) * .53);
  min-height:44px;
  height:clamp(44px,6.3vw,72px);
  display:flex;
  align-items:center;
  justify-content:center;
  gap:2.8%;
  padding:0 16px;
  background:#cec9b6ba;
  border:1px solid #e6dfcf30;
  border-radius:26px;
  backdrop-filter:blur(14px);
  -webkit-backdrop-filter:blur(14px);
  color:var(--espresso);
}

.site-nav.is-on-dark {
  background:#79614b99;
  color:var(--cream);
}

.site-brand {
  position:fixed;
  z-index:11;
  left:calc((100% - var(--layout-width)) / 2 + var(--layout-width) * .059);
  top:calc(var(--layout-width) * .066);
  width:calc(var(--layout-width) * .106);
  aspect-ratio:2.78;
}

.site-brand.is-on-dark img {
  filter:brightness(0) invert(1);
}

.site-nav a {
  position:relative;
  display:flex;
  align-items:center;
  min-height:44px;
  font-size:clamp(14px,calc(var(--layout-width) * .019),23px);
  text-decoration:none;
  line-height:1.5;
  letter-spacing:-.4px;
  white-space:nowrap;
}

.site-nav a[aria-current] {
  font-weight:750;
}

.site-nav a[aria-current]::after {
  content:'';
  position:absolute;
  width:64%;
  height:2px;
  background:currentColor;
  left:18%;
  bottom:0;
}

/* Text and illustrations share normal flow on phones and small tablets.
   A section may grow with its text; no fixed height can clip it or cover it. */
@media(max-width:820px) {
  :root {
    --mobile-header-space:136px;
    --mobile-section-tail:clamp(136px,20svh,200px);
  }
  .panel {
    /* Keep the full, expanded Safari viewport plus a separate closing space.
       This space belongs to the section: the next background starts after it.
       Normal block flow lets long content increase the height without clipping. */
    display:block;
    min-height:calc(100vh + var(--mobile-section-tail));
    min-height:calc(100lvh + var(--mobile-section-tail));
    padding-bottom:calc(var(--mobile-section-tail) + env(safe-area-inset-bottom,0px));
  }
  .canvas {
    width:min(100%,600px);
    max-width:none;
    aspect-ratio:auto;
    min-height:100vh;
    min-height:100lvh;
  }
  .panel:not(.hero) .canvas {
    display:flex;
    flex-direction:column;
    justify-content:center;
    gap:36px;
    padding:var(--mobile-header-space) 7% 64px;
  }
  .copy {
    position:static;
    width:100%;
    font-size:clamp(16px,2.5vw,18px);
    line-height:1.45;
    letter-spacing:0;
  }
  .copy h2 {
    font-size:clamp(23px,4.5vw,30px);
    letter-spacing:.4px;
    margin-bottom:16px;
    white-space:normal;
  }
  .showcase-phone {
    position:relative;
    inset:auto;
    width:clamp(140px,38vw,180px);
    height:auto;
    aspect-ratio:224/486;
    margin:0 auto;
    border-radius:28px;
    padding:7px;
    box-shadow:8px 15px 20px #0006;
  }
  .showcase-phone img {
    border-radius:21px;
    object-fit:contain;
  }
  .orders-art {
    position:relative;
    inset:auto;
    order:2;
    width:100%;
    display:grid;
    gap:16px;
    padding:12px;
    overflow:visible;
    background:radial-gradient(ellipse 50% 50% at 50% 50%,#55534c25,#55534c12 50%,transparent 100%);
    border-radius:28px;
    -webkit-mask-image:none;
    mask-image:none;
  }
  .order-card {
    width:min(100%,280px);
    height:auto;
    margin:0;
    padding:16px 20px;
    border-radius:26px;
    transform:none;
  }
  .order-card:nth-child(2) {
    justify-self:end;
  }
  .order-card:nth-child(n+3) {
    display:none;
  }
  .status-lights {
    gap:5px;
    margin-bottom:14px;
  }
  .status-lights i {
    width:13px;
    height:13px;
  }
  .order-line {
    gap:10px;
  }
  .order-line>span {
    width:40px;
    height:40px;
    padding:4px;
  }
  .order-line strong {
    font-size:14px;
    letter-spacing:.4px;
  }
  .order-line p {
    font-size:14px;
    margin-top:4px;
  }
  .team-photos {
    position:relative;
    inset:auto;
    width:min(82%,300px);
    height:auto;
    aspect-ratio:1;
    margin:12px auto;
  }
  .polaroid {
    padding:10px 10px 35px;
  }
  .polaroid::after {
    height:25px;
    top:-15px;
  }
  .contact-action {
    position:static;
    width:100%;
  }
  .contact-action h2 {
    font-size:clamp(20px,3.5vw,26px);
    line-height:1.35;
    white-space:normal;
    margin:0 0 24px;
  }
  .whatsapp-button {
    min-height:60px;
    height:auto;
    font-size:clamp(14px,2.5vw,18px);
    gap:16px;
    padding:16px;
    justify-content:center;
  }
  .whatsapp-button svg {
    flex:none;
    height:28px;
    width:28px;
  }
  .devices {
    position:relative;
    inset:auto;
    width:min(100%,430px);
    height:auto;
    aspect-ratio:450/270;
    margin:8px auto 20px;
  }
  .desktop-screen {
    padding:8px 6px 12px;
    border-radius:8px 8px 3px 3px;
  }
  .tablet-device {
    padding:9px 6px 7px;
    border-radius:6px;
  }
  .mini-phone {
    padding:3px;
    border-radius:8px;
  }
  .mini-phone img {
    border-radius:6px;
  }
  .footer-main {
    width:min(100%,600px);
    padding:32px 7%;
    grid-template-columns:minmax(0,1fr) minmax(0,1fr);
    gap:28px;
  }
  .footer-brand .brand {
    width:min(100%,130px);
  }
  .footer-brand p {
    font-size:12px;
  }
  .footer-main nav {
    border-right:0;
    padding:0 0 0 20px;
  }
  .footer-main address {
    grid-column:1/-1;
  }













  .site-brand {
    top:24px;
    left:max(7%,calc((100% - 516px) / 2));
    width:100px;
  }
  .site-nav {
    top:76px;
    left:max(7%,calc((100% - 516px) / 2));
    right:auto;
    width:86%;
    max-width:516px;
    height:44px;
    gap:3%;
    padding:0 8px;
    border-radius:16px;
  }
  .site-nav a {
    font-size:clamp(11px,3vw,17px);
    letter-spacing:-.25px;
  }
  .site-nav a[aria-current]::after {
    display:none;
  }
}

/* Short landscape windows can scroll naturally without making text tiny. */
@media(min-width:821px) and (max-height:500px) {
  :root {
    --layout-width:min(100vw,1000px);
  }
}

@media(prefers-reduced-motion:reduce) {
  html {
    scroll-behavior:auto;
  }
  *,*::before,*::after {
    transition:none!important;
    animation:none!important;
  }
}
