/* CustomKleed, in the owner's palette: Porcelain 60%, Midnight Navy 30%, Solar Orange 10%.
   Calm and light; the rugs bring the colour. Orange is for actions only (buttons, badges, the active dot). */
:root {
  --porcelain: #f2efe9;     /* page background */
  --porcelain-2: #e8e3da;   /* tiles and quiet surfaces on porcelain */
  --white: #ffffff;         /* cards that hold content (form, price tool) */
  --navy: #14213d;          /* text, footer, dark sections */
  --navy-2: #525a6d;        /* secondary text: navy at 72% on porcelain (6:1) */
  --orange: #ff6b1a;        /* buttons and badges; text on it is navy (5.7:1), never white (2.9:1) */
  --orange-soft: #ffe3d2;
  --orange-text: #b04308;   /* orange as small text on white or porcelain (4.8:1) */
  --line: rgb(20 33 61 / .14);
  --bad: #b42318;
  --wa: #25d366;
  --shadow-card: 0 1px 2px rgb(20 33 61 / .06), 0 14px 34px -14px rgb(20 33 61 / .2);
  --shadow-lift: 0 2px 4px rgb(20 33 61 / .08), 0 22px 44px -18px rgb(20 33 61 / .28);
  --r-sm: 12px;
  --r-md: 20px;
  --r-lg: 28px;
  --ease: cubic-bezier(.16, 1, .3, 1);
  --font: "Geist", ui-sans-serif, system-ui, sans-serif;
  /* colours of the current section; .theme-navy swaps them */
  --bg: var(--porcelain);
  --fg: var(--navy);
  --fg-2: var(--navy-2);
  --accent: var(--orange);
  --on-accent: var(--navy);
  --hair: var(--line);
  color-scheme: light;
}
.theme-navy { --bg: var(--navy); --fg: var(--porcelain); --fg-2: rgb(242 239 233 / .76); --hair: rgb(242 239 233 / .16); background: var(--bg); color: var(--fg); }
/* white cards inside a navy section speak the light theme again */
.form, .done, .sizer, .tiers button, .contact-card { --fg: var(--navy); --fg-2: var(--navy-2); --hair: var(--line); color: var(--fg); }

*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; -webkit-text-size-adjust: 100%; }
body { background: var(--porcelain); color: var(--navy); font: 400 16px/1.6 var(--font); -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; overflow-x: clip; }
img, video { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
a, button, label, summary { -webkit-tap-highlight-color: transparent; touch-action: manipulation; }
button, input, textarea, select { font: inherit; color: inherit; }
.wrap { width: min(1240px, 100% - 32px); margin-inline: auto; }
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.i { width: 1.25em; height: 1.25em; flex: none; fill: currentColor; }
.vh { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
:focus-visible { outline: 2px solid var(--fg); outline-offset: 3px; border-radius: 6px; }
.skip { position: absolute; left: 16px; top: -100px; z-index: 50; padding: 12px 18px; background: var(--navy); color: var(--porcelain); border-radius: 999px; font-weight: 600; text-decoration: none; }
.skip:focus { top: 12px; }
@media (min-width: 700px) { body { font-size: 17px; } }

/* type: Geist only, tight and bold for headings */
.display { font: 800 clamp(2.9rem, 7.2vw, 5.8rem)/.98 var(--font); letter-spacing: -.048em; text-wrap: balance; }
.display-sm { font: 800 clamp(2.4rem, 5vw, 4rem)/1.02 var(--font); letter-spacing: -.042em; text-wrap: balance; }
.h2 { font: 750 clamp(1.9rem, 3.6vw, 3rem)/1.06 var(--font); letter-spacing: -.036em; text-wrap: balance; }
.lead { font-size: clamp(1.1rem, 1.5vw, 1.3rem); line-height: 1.5; color: var(--fg-2); max-width: 40ch; text-wrap: pretty; }
.sub { color: var(--fg-2); max-width: 58ch; margin-top: 14px; text-wrap: pretty; }
.badge { display: inline-block; padding: 6px 13px; background: var(--orange); color: var(--navy); border-radius: 999px; font-size: .84rem; font-weight: 650; letter-spacing: -.005em; }

/* actions */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 48px; padding: 0 24px; white-space: nowrap; background: var(--accent); color: var(--on-accent); font: 650 1rem/1 var(--font); letter-spacing: -.01em; border: 2px solid var(--accent); border-radius: 999px; text-decoration: none; cursor: pointer; transition: transform .25s var(--ease), box-shadow .25s var(--ease), background-color .2s, color .2s, border-color .2s; }
.btn .i { width: 1.3em; height: 1.3em; }
.btn:active { transform: translateY(1px) scale(.98); }
.btn-lg { min-height: 56px; padding: 0 30px; font-size: 1.05rem; }
.btn-ghost { background: transparent; color: var(--fg); border-color: var(--hair); }
.btn-ink { background: var(--navy); color: var(--porcelain); border-color: var(--navy); }
.btn-wa { background: var(--wa); border-color: var(--wa); color: var(--navy); }
.btn-sm { min-height: 44px; padding: 0 18px; font-size: .94rem; }
.btn-wide { width: 100%; }
.link-more { display: inline-flex; align-items: center; min-height: 44px; font-weight: 600; color: var(--fg); text-decoration: none; }
@media (hover: hover) {
  .btn:hover { transform: translateY(-2px); box-shadow: 0 2px 4px rgb(20 33 61 / .1), 0 12px 22px -10px rgb(20 33 61 / .4); }
  .btn-ghost:hover { border-color: var(--fg); box-shadow: none; }
  .link-more:hover { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 5px; text-decoration-color: var(--orange); }
}

/* nav */
.nav { position: sticky; top: 0; z-index: 30; background: color-mix(in srgb, var(--porcelain) 88%, transparent); -webkit-backdrop-filter: saturate(1.4) blur(16px); backdrop-filter: saturate(1.4) blur(16px); border-bottom: 1px solid transparent; transition: border-color .3s; }
.nav.is-scrolled, .nav.is-open { border-color: var(--line); }
.nav-in { height: 64px; display: flex; align-items: center; gap: 16px; }
.nav-logo { flex: none; border-radius: 6px; }
.nav-logo img { height: 40px; width: auto; }
.nav-links { display: none; }
.nav-tools { margin-left: auto; display: flex; align-items: center; gap: 4px; }
.nav-icon, .nav-lang { display: grid; place-items: center; min-width: 44px; height: 44px; border-radius: 999px; color: var(--navy-2); text-decoration: none; font-weight: 600; font-size: .92rem; transition: color .2s, background-color .2s; }
.nav-icon .i { width: 22px; height: 22px; }
.nav-cta { display: none; }
.nav-burger { display: grid; place-items: center; width: 44px; height: 44px; margin-right: -8px; background: none; border: 0; color: var(--navy); cursor: pointer; }
.nav-burger .i { width: 28px; height: 28px; }
.nav-mobile-in { display: grid; padding-block: 4px 20px; }
.nav-mobile a:not(.btn) { padding: 13px 0; font: 700 1.5rem/1.2 var(--font); letter-spacing: -.03em; text-decoration: none; border-bottom: 1px solid var(--line); }
.nav-mobile a[aria-current="page"]:not(.btn) { color: var(--navy); text-decoration: underline; text-decoration-color: var(--orange); text-decoration-thickness: 3px; text-underline-offset: 6px; }
.nav-mobile .btn { margin-top: 18px; }
/* floats under the menu instead of pushing the page down when it appears */
.lang-hint { position: absolute; left: 0; right: 0; top: 100%; display: block; padding: 8px 16px; text-align: center; font-size: .88rem; font-weight: 500; background: var(--porcelain-2); border-bottom: 1px solid var(--line); text-decoration: none; }
@media (hover: hover) { .nav-icon:hover, .nav-lang:hover { color: var(--navy); background: rgb(20 33 61 / .06); } .lang-hint:hover { text-decoration: underline; } }
@media (min-width: 1000px) {
  .nav-in { height: 72px; gap: 28px; }
  .nav-logo img { height: 44px; }
  .nav-links { display: flex; gap: 6px; margin-left: auto; }
  .nav-links a { display: grid; place-items: center; min-height: 44px; padding: 0 12px; color: var(--navy-2); font-weight: 500; text-decoration: none; border-radius: 999px; transition: color .2s, background-color .2s; }
  .nav-links a:hover { color: var(--navy); background: rgb(20 33 61 / .06); }
  .nav-links a[aria-current="page"] { color: var(--navy); font-weight: 600; text-decoration: underline; text-decoration-color: var(--orange); text-decoration-thickness: 2px; text-underline-offset: 8px; }
  .nav-tools { margin-left: 0; }
  .nav-cta { display: inline-flex; margin-left: 8px; }
  .nav-burger, .nav-mobile { display: none; }
  html { scroll-padding-top: 96px; }
}

/* hero: centred, one rug at a time floating on porcelain, its colour in the dots below */
.hero { overflow: clip; }
.hero-in { display: grid; justify-items: center; text-align: center; padding-block: clamp(40px, 7vw, 88px) clamp(48px, 7vw, 96px); }
.hero .display { margin-top: 20px; max-width: 13ch; }
.hero .lead { margin-top: 18px; }
.hero-cta { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 8px 22px; margin-top: 30px; }
.showcase { display: grid; justify-items: center; gap: 18px; width: 100%; max-width: 620px; margin-top: clamp(28px, 5vw, 48px); }
.stage { position: relative; width: 100%; aspect-ratio: 5 / 4; }
/* the soft shadow of the rug on the floor; every rug stands on the same line just above it */
.stage::after { content: ""; position: absolute; left: 22%; right: 22%; bottom: 10%; height: 8%; border-radius: 50%; background: radial-gradient(closest-side, rgb(20 33 61 / .26), transparent); }
.stage-rug { position: absolute; inset: 0; z-index: 1; opacity: 0; transform: translateY(14px) scale(.96); pointer-events: none; transition: opacity .7s ease, transform 1s var(--ease); }
.stage-rug.is-on { opacity: 1; transform: none; pointer-events: auto; }
.stage-rug img { position: absolute; left: 11%; top: 0; width: 78%; height: 86%; object-fit: contain; object-position: 50% 100%; filter: drop-shadow(0 10px 8px rgb(20 33 61 / .16)); }
.stage-rug figcaption { position: absolute; left: 0; right: 0; bottom: 0; font-size: .9rem; font-weight: 600; color: var(--navy-2); }
.stage-foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 10px 22px; margin-top: 18px; }
.stage-dots { display: flex; gap: 2px; }
.stage-dots button { display: grid; place-items: center; width: 34px; height: 34px; padding: 0; background: none; border: 0; border-radius: 50%; cursor: pointer; }
.stage-dots button::before { content: ""; width: 16px; height: 16px; border-radius: 50%; background: var(--dot); box-shadow: inset 0 0 0 1px rgb(20 33 61 / .22); transition: transform .25s var(--ease), box-shadow .25s; }
.stage-dots button[aria-pressed="true"]::before { transform: scale(1.1); box-shadow: inset 0 0 0 1px rgb(20 33 61 / .22), 0 0 0 3px var(--porcelain), 0 0 0 5px var(--orange); }
.stage-price { font-size: .95rem; color: var(--navy-2); }
.stage-price strong { color: var(--navy); font-weight: 650; }

/* sections */
.section { padding-block: clamp(64px, 9vw, 128px); }
/* two plain sections in a row share one gap; after a navy section the full gap returns */
.section:not([class*="theme-"]) + .section:not([class*="theme-"]) { padding-top: 0; }
.head { margin-bottom: clamp(26px, 4vw, 44px); }
.row-head { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 12px 24px; margin-bottom: clamp(24px, 3.5vw, 40px); }
.page-head-sec { padding-top: clamp(40px, 6vw, 80px); }
.page-head { margin-bottom: clamp(26px, 4vw, 40px); }

/* intro: what CustomKleed is, in two lines */
.intro { display: grid; gap: 18px 64px; }
.intro-body { font-size: clamp(1.15rem, 1.8vw, 1.45rem); line-height: 1.45; letter-spacing: -.01em; max-width: 34ch; text-wrap: pretty; }
.intro-copy .link-more { margin-top: 10px; }
@media (min-width: 900px) { .intro { grid-template-columns: 1fr 1fr; align-items: start; } }

/* gallery */
.filters { display: flex; gap: 8px; overflow-x: auto; margin: 0 -16px 24px; padding: 2px 16px 4px; scroll-padding-inline: 16px; scrollbar-width: none; overscroll-behavior-x: contain; }
.filters::-webkit-scrollbar { display: none; }
.chip { flex: none; display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 16px; background: transparent; color: var(--navy); border: 1.5px solid var(--line); border-radius: 999px; font: 550 .95rem/1 var(--font); cursor: pointer; transition: background-color .2s, border-color .2s, color .2s; }
.chip-n { font-size: .8rem; color: var(--navy-2); font-variant-numeric: tabular-nums; }
.chip.is-on { background: var(--navy); color: var(--porcelain); border-color: var(--navy); }
.chip.is-on .chip-n { color: rgb(242 239 233 / .75); }
@media (hover: hover) { .chip:hover { border-color: var(--navy); } }
.grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.tile { display: block; width: 100%; padding: 0; background: none; border: 0; color: var(--navy); text-align: left; cursor: zoom-in; }
.tile-img { position: relative; display: grid; place-items: center; aspect-ratio: 1; overflow: hidden; border-radius: var(--r-md); background: var(--porcelain-2); }
.tile-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.tile.has-cut .tile-img img { width: 78%; height: 78%; object-fit: contain; filter: drop-shadow(0 10px 10px rgb(20 33 61 / .16)); }
.tile-badge { position: absolute; top: 10px; right: 10px; display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; background: rgb(255 255 255 / .92); color: var(--navy); }
.tile-badge .i { width: 18px; height: 18px; }
.tile-cap { display: block; padding: 10px 2px 0; font-size: .95rem; font-weight: 600; letter-spacing: -.01em; }
.tile.is-hidden { display: none; }
@media (hover: hover) {
  .tile.has-cut:hover .tile-img img { transform: translateY(-6px) rotate(-2deg) scale(1.04); }
  .tile:not(.has-cut):hover .tile-img img { transform: scale(1.04); }
}
@media (min-width: 700px) { .grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; } }
@media (min-width: 1100px) { .grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; } }

/* process: four real steps, the clip plays when you tap the photo */
.steps { list-style: none; display: grid; grid-auto-flow: column; grid-auto-columns: 80%; gap: 14px; overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding-inline: 16px; margin-inline: -16px; padding: 0 16px 6px; scrollbar-width: none; overscroll-behavior-x: contain; }
.steps::-webkit-scrollbar { display: none; }
.step { scroll-snap-align: start; display: grid; gap: 16px; align-content: start; }
.step-media { position: relative; display: block; width: 100%; aspect-ratio: 4 / 5; padding: 0; border: 0; border-radius: var(--r-md); overflow: hidden; background: var(--porcelain-2); cursor: pointer; }
.step-media img, .step-media video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.step-media video { opacity: 0; transition: opacity .3s; }
.step-media.is-playing video { opacity: 1; }
.step-play { position: absolute; left: 12px; bottom: 12px; display: grid; place-items: center; width: 48px; height: 48px; border-radius: 50%; background: rgb(20 33 61 / .82); color: var(--porcelain); transition: opacity .2s, transform .25s var(--ease); }
.step-play .i { width: 22px; height: 22px; }
.step-media.is-playing .step-play { opacity: 0; transform: scale(.8); }
.step-n { display: inline-grid; place-items: center; width: 32px; height: 32px; margin-bottom: 12px; background: var(--navy); color: var(--porcelain); border-radius: 50%; font-size: .9rem; font-weight: 700; }
.step h3 { margin-bottom: 6px; font-size: 1.2rem; font-weight: 700; line-height: 1.25; letter-spacing: -.02em; text-wrap: balance; }
.step p { color: var(--fg-2); }
@media (hover: hover) { .step-media:hover .step-play { transform: scale(1.08); } }
@media (min-width: 900px) {
  .steps { grid-auto-flow: row; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 22px; overflow: visible; margin-inline: 0; padding: 0; }
}

/* about: Frank at work */
.about-grid { display: grid; gap: 44px; align-items: center; }
.about-media { position: relative; max-width: 560px; padding: 0 14% 16% 0; }
.about-video { aspect-ratio: 1; overflow: hidden; border-radius: var(--r-md); background: #0e182e; transform: rotate(-2deg); box-shadow: 0 30px 60px -30px rgb(0 0 0 / .8); }
.about-video video { width: 100%; height: 100%; object-fit: cover; }
.about-detail { position: absolute; right: 0; bottom: 0; width: 56%; overflow: hidden; border-radius: var(--r-md); transform: rotate(3deg); box-shadow: 0 0 0 6px var(--bg), 0 26px 50px -20px rgb(0 0 0 / .8); }
.about-detail img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.about-lead { max-width: 36ch; margin-top: 18px; font-size: clamp(1.15rem, 1.7vw, 1.4rem); line-height: 1.45; letter-spacing: -.01em; color: var(--fg); text-wrap: pretty; }
.about-copy p:not(.about-lead) { max-width: 54ch; margin-top: 14px; color: var(--fg-2); }
.about-copy .link-more { margin-top: 14px; }
.about-portrait { overflow: hidden; aspect-ratio: 4 / 5; border-radius: var(--r-lg); background: var(--porcelain-2); box-shadow: var(--shadow-lift); }
.about-portrait video, .about-portrait img { width: 100%; height: 100%; object-fit: cover; }
.about-page { padding-top: clamp(40px, 6vw, 80px); }
.workshop-grid { display: grid; gap: 16px; }
.workshop-grid figure { overflow: hidden; border-radius: var(--r-md); }
.workshop-grid img { width: 100%; height: 100%; object-fit: cover; }
.workshop-main img { aspect-ratio: 4 / 5; }
.workshop-detail img { aspect-ratio: 4 / 3; }
@media (min-width: 900px) {
  .about-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(48px, 7vw, 112px); }
  .about-page .about-portrait { max-width: 520px; justify-self: end; width: 100%; }
  .workshop-grid { grid-template-columns: 1.15fr 1fr; align-items: end; }
}

/* business */
.biz-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.biz-copy { grid-column: 1 / -1; padding-bottom: 12px; }
.biz-copy .btn { margin-top: 24px; }
.biz-grid figure { overflow: hidden; border-radius: var(--r-md); background: var(--porcelain-2); }
.biz-grid figure img { width: 100%; height: 100%; object-fit: cover; }
.biz-a { grid-row: span 2; }
.biz-b, .biz-c { aspect-ratio: 4 / 5; }
@media (min-width: 900px) {
  .biz-grid { grid-template-columns: 1.1fr 1fr 1fr; gap: 16px; }
  .biz-copy { grid-column: auto; grid-row: span 2; align-self: center; padding: 0 24px 0 0; }
  .biz-b, .biz-c { aspect-ratio: 4 / 3; }
}

/* reviews (only rendered once there are real ones) */
.review-list { list-style: none; display: grid; gap: 14px; margin-top: 30px; padding: 0; }
.review { display: grid; gap: 14px; align-content: start; padding: 26px; background: var(--white); border-radius: var(--r-md); box-shadow: var(--shadow-card); }
.review .i { width: 30px; height: 30px; color: var(--orange-text); }
.review blockquote p { font-size: 1.08rem; }
.review-by { font-weight: 600; color: var(--navy-2); }
@media (min-width: 800px) { .review-list { grid-template-columns: repeat(3, 1fr); gap: 16px; } }

/* instagram */
.insta-grid { list-style: none; display: grid; grid-auto-flow: column; grid-auto-columns: 44%; gap: 10px; overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding-inline: 16px; margin-inline: -16px; padding: 0 16px 4px; scrollbar-width: none; overscroll-behavior-x: contain; }
.insta-grid::-webkit-scrollbar { display: none; }
.insta-grid li { scroll-snap-align: start; }
.insta-grid a { display: block; overflow: hidden; border-radius: var(--r-md); }
.insta-grid img { width: 100%; aspect-ratio: 1; object-fit: cover; transition: transform .6s var(--ease); }
@media (hover: hover) { .insta-grid a:hover img { transform: scale(1.04); } }
@media (min-width: 800px) {
  .insta-grid { grid-auto-flow: row; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; overflow: visible; margin-inline: 0; padding: 0; }
}

/* the navy call-to-action band */
.band { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px 40px; padding: clamp(30px, 5vw, 64px); border-radius: var(--r-lg); }
.band .sub { margin-top: 10px; }

/* request page: navy, the form on a white card */
.order { padding-block: clamp(48px, 7vw, 104px); }
.order-grid { display: grid; gap: 30px; }
.order-aside { display: grid; gap: 26px; align-content: start; }
.order-note { padding: 22px; border: 2px solid var(--orange); border-radius: var(--r-md); }
.order-note h2, .direct h2 { margin-bottom: 10px; font-size: 1.15rem; font-weight: 700; letter-spacing: -.015em; }
.order-note p + p { margin-top: 10px; }
.order-note strong { color: var(--orange); }
.direct { display: grid; gap: 2px; }
.direct a { display: inline-flex; align-items: center; gap: 12px; width: fit-content; min-height: 44px; font-size: 1.05rem; font-weight: 600; text-decoration: none; }
.direct .i { width: 24px; height: 24px; color: var(--orange); }
@media (hover: hover) { .direct a:hover { text-decoration: underline; text-underline-offset: 4px; } }
@media (min-width: 1000px) {
  .order-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1.35fr); grid-template-areas: "intro main" "aside main"; column-gap: clamp(40px, 6vw, 96px); row-gap: 40px; align-items: start; }
  .order-intro { grid-area: intro; }
  .order-main { grid-area: main; }
  .order-aside { grid-area: aside; }
}

.form, .done { padding: clamp(18px, 3.5vw, 36px); background: var(--white); border-radius: var(--r-lg); box-shadow: 0 2px 6px rgb(0 0 0 / .12), 0 40px 80px -40px rgb(0 0 0 / .55); }
.form { display: grid; gap: 32px; }
.fs { display: grid; gap: 18px; min-width: 0; padding: 0; border: 0; }
.fs-title { display: flex; align-items: center; gap: 12px; padding: 0; margin-bottom: 2px; font-size: 1.25rem; font-weight: 700; letter-spacing: -.02em; }
.fs-n { display: inline-grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: var(--navy); color: var(--porcelain); font-size: .9rem; font-weight: 700; }
.field { display: grid; gap: 8px; }
.field label, .label { font-size: .95rem; font-weight: 600; }
.field input:not([type=radio]), .field textarea { width: 100%; min-height: 52px; padding: 13px 14px; font-size: 16px; background: var(--porcelain); border: 1.5px solid rgb(20 33 61 / .2); border-radius: var(--r-sm); transition: border-color .2s, box-shadow .2s; }
.field textarea { min-height: 100px; resize: vertical; }
.field input[type=number] { -moz-appearance: textfield; appearance: textfield; }
.field input[type=number]::-webkit-inner-spin-button, .field input[type=number]::-webkit-outer-spin-button { -webkit-appearance: none; margin: 0; }
.field input::placeholder, .field textarea::placeholder { color: #6b7182; }
.field input:not([type=radio]):focus, .field textarea:focus { outline: none; border-color: var(--navy); box-shadow: 0 0 0 4px rgb(255 107 26 / .3); }
.field.is-bad input:not([type=radio]), .field.is-bad textarea { border-color: var(--bad); }
.field-hint { font-size: .88rem; color: var(--navy-2); }
.err { color: var(--bad); font-size: .9rem; font-weight: 500; }
.field-row { display: grid; gap: 16px; }
@media (min-width: 560px) { .field-row { grid-template-columns: 1fr 1fr; align-items: start; } }

/* width × height */
.size-row { display: flex; flex-wrap: wrap; align-items: end; gap: 10px; }
.size-in { display: grid; gap: 4px; }
.size-cap { font-size: .8rem; font-weight: 500; color: var(--navy-2); }
.field .size-row input { width: 100px; font-size: 1.25rem; font-weight: 700; font-variant-numeric: tabular-nums; }
.size-x { padding-bottom: 12px; font-size: 1.3rem; color: var(--navy-2); }
.size-unit { padding-bottom: 14px; font-weight: 600; color: var(--navy-2); }
.size-price { font-size: 1.15rem; font-weight: 700; letter-spacing: -.01em; }
.size-price:empty { display: none; }

/* choice cards: kind of rug, frame, shape */
.choices { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.choices-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.choice { position: relative; display: grid; justify-items: center; align-content: start; gap: 10px; min-height: 104px; padding: 16px 8px 12px; text-align: center; font-size: .88rem; font-weight: 600; line-height: 1.25; background: var(--porcelain); border: 1.5px solid rgb(20 33 61 / .16); border-radius: var(--r-sm); cursor: pointer; transition: border-color .2s, background-color .2s; }
.choice input { position: absolute; inset: 0; margin: 0; opacity: 0; cursor: pointer; }
.choice:has(input:checked) { background: var(--white); border-color: var(--navy); box-shadow: inset 0 0 0 1px var(--navy); }
.choice:has(input:focus-visible) { outline: 2px solid var(--navy); outline-offset: 3px; }
/* the icons are tiny rugs: orange with the navy edge his rugs have */
.shape-ic, .kind-ic { display: block; width: 40px; height: 40px; background: var(--orange); border: 3px solid var(--navy); }
.shape-ic-round { border-radius: 50%; }
.shape-ic-square { width: 44px; height: 34px; margin-top: 3px; border-radius: 5px; }
.shape-ic-design { border-radius: 58% 42% 50% 50% / 62% 48% 52% 38%; transform: rotate(-12deg); }
.kind-ic-floor { width: 46px; height: 22px; margin-block: 9px; border-radius: 4px; transform: skewX(-32deg); }
.kind-ic-wall { position: relative; width: 32px; height: 36px; margin-top: 4px; border-radius: 3px; }
.kind-ic-wall::before { content: ""; position: absolute; left: 50%; top: -10px; width: 14px; height: 9px; border: 2px solid var(--navy); border-bottom: 0; border-radius: 2px 2px 0 0; transform: translateX(-50%); }
.frame-ic-with { width: 40px; height: 36px; margin-top: 2px; border: 6px solid var(--navy); box-shadow: inset 0 0 0 2px var(--white); border-radius: 2px; }
.frame-ic-without { width: 32px; height: 30px; margin-top: 5px; border-radius: 3px; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.btn-submit { min-height: 58px; font-size: 1.05rem; }
.btn-submit[aria-busy="true"] { opacity: .7; cursor: progress; }
.form-status { min-height: 1.4em; margin-top: -16px; font-size: .95rem; font-weight: 500; }
.form-status:empty { display: none; }
.form-status.is-bad { color: var(--bad); }
.form-privacy { margin-top: -16px; font-size: .86rem; color: var(--navy-2); }
.form-privacy a { color: var(--navy); }

/* the upload area: a calm drop zone */
.frame { position: relative; border-radius: var(--r-md); }
.frame-cloth { position: relative; display: grid; align-content: center; min-height: 220px; padding: 22px 16px; background: var(--porcelain); border: 1.5px dashed rgb(20 33 61 / .26); border-radius: var(--r-md); transition: background-color .2s, border-color .2s; }
.frame-input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.frame-pick { position: relative; display: grid; justify-items: center; gap: 10px; padding: 14px 8px; text-align: center; border-radius: var(--r-sm); cursor: pointer; }
.frame-input:focus-visible ~ .frame-pick { outline: 2px solid var(--navy); outline-offset: 2px; }
.frame-pick > .i { width: 56px; height: 56px; padding: 15px; border-radius: 50%; background: var(--orange-soft); color: var(--orange-text); }
.frame-title { font-size: 1.15rem; font-weight: 700; letter-spacing: -.015em; text-wrap: balance; }
.frame-hint { font-size: .9rem; color: var(--navy-2); }
.frame-pick .btn { margin-top: 6px; }
.frame-over { display: none; }
.frame.is-over .frame-cloth { background: #fff4ec; border: 1.5px solid var(--orange); }
.frame.is-over .frame-title { display: none; }
.frame.is-over .frame-over { display: block; }
.frame.has-files .frame-pick { display: none; }
.frame.has-files .frame-cloth { align-content: start; min-height: 0; padding: 16px; }
@media (hover: hover) { .frame-cloth:hover { border-color: rgb(20 33 61 / .45); } }
@media (pointer: coarse) { .only-fine { display: none !important; } }
@media not (pointer: coarse) { .only-coarse { display: none !important; } }

/* uploaded files */
.files { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(92px, 1fr)); gap: 12px; }
.files:empty { display: none; }
.file { position: relative; aspect-ratio: 1; }
.file-card { position: absolute; inset: 0; overflow: hidden; display: grid; place-items: center; background: var(--white); border-radius: var(--r-sm); box-shadow: 0 0 0 1px rgb(20 33 61 / .08), 0 8px 18px -12px rgb(20 33 61 / .45); }
.file-card img { width: 100%; height: 100%; object-fit: cover; }
.file-doc { display: grid; justify-items: center; gap: 4px; padding: 8px; text-align: center; font-size: .72rem; line-height: 1.2; word-break: break-word; color: var(--navy-2); }
.file-doc .i { width: 30px; height: 30px; color: var(--navy); }
.file-bar { position: absolute; left: 8px; right: 8px; bottom: 8px; height: 6px; overflow: hidden; border-radius: 3px; background: rgb(255 255 255 / .85); box-shadow: 0 0 0 1px rgb(0 0 0 / .1); }
.file-bar span { display: block; height: 100%; background: var(--orange); transform-origin: 0 50%; transform: scaleX(var(--p, .04)); transition: transform .2s; }
.file.is-done .file-bar { display: none; }
.file-ok { position: absolute; left: 6px; bottom: 6px; display: none; place-items: center; width: 26px; height: 26px; border-radius: 50%; background: var(--navy); color: var(--porcelain); }
.file-ok .i { width: 15px; height: 15px; }
.file.is-done .file-ok { display: grid; }
.file-x { position: absolute; top: -12px; right: -12px; display: grid; place-items: center; width: 44px; height: 44px; padding: 0; background: none; border: 0; cursor: pointer; }
.file-x span { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: var(--navy); color: var(--porcelain); box-shadow: 0 2px 6px rgb(0 0 0 / .3); }
.file-x .i { width: 15px; height: 15px; }
.file.is-error .file-card { box-shadow: 0 0 0 3px var(--bad); }
.file-fail { position: absolute; inset: 0; display: none; place-content: center; justify-items: center; gap: 6px; padding: 6px; text-align: center; font-size: .74rem; font-weight: 600; line-height: 1.2; color: #fff; background: rgb(20 33 61 / .86); border-radius: var(--r-sm); }
.file.is-error .file-fail { display: grid; }
.file-retry { display: inline-flex; align-items: center; gap: 4px; min-height: 32px; padding: 0 10px; font-size: .78rem; font-weight: 600; background: #fff; color: var(--navy); border: 0; border-radius: 999px; cursor: pointer; }
.file-add { display: flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; margin-top: 14px; padding: 0 12px; font-weight: 600; border: 1.5px dashed rgb(20 33 61 / .3); border-radius: var(--r-sm); cursor: pointer; transition: background-color .2s; }
.file-add .i { width: 22px; height: 22px; }
@media (hover: hover) { .file-add:hover { background: var(--white); } }

/* sent */
.done { display: grid; justify-items: start; gap: 14px; }
.done:focus { outline: none; }
.done-mark { display: grid; place-items: center; width: 56px; height: 56px; border-radius: 50%; background: var(--orange); color: var(--navy); }
.done-mark .i { width: 30px; height: 30px; }
.done-title { font-size: clamp(1.9rem, 3.6vw, 2.5rem); font-weight: 800; line-height: 1.05; letter-spacing: -.035em; }
.done-ref strong { font-size: 1.15rem; font-weight: 800; letter-spacing: .03em; }
.done-wa { display: grid; justify-items: start; gap: 8px; width: 100%; margin: 6px 0 4px; padding: 20px; background: var(--porcelain); border-radius: var(--r-md); }
.done-wa h3 { font-size: 1.15rem; font-weight: 700; }
.done-wa p { color: var(--navy-2); }
.done-wa .btn { margin-top: 6px; }

/* prices: a white card with the rug and a hand for scale */
.sizer { display: grid; gap: 24px; align-items: center; padding: 20px; background: var(--white); border-radius: var(--r-lg); box-shadow: var(--shadow-card); }
.sizer-stage { position: relative; aspect-ratio: 1; width: min(100%, 520px); margin-inline: auto; display: grid; place-items: center; }
.sizer-max { position: absolute; inset: 0; border: 1.5px dashed var(--line); border-radius: var(--r-md); }
.sizer-max span { position: absolute; top: 10px; right: 14px; font-size: .85rem; color: var(--navy-2); }
/* an adult hand (19 cm) at the same scale as the 170 cm stage, so the rug's size means something */
.sizer-hand { position: absolute; z-index: 2; right: 10%; bottom: 4%; height: calc(19 / 170 * 100%); width: auto; transform: rotate(-16deg); transform-origin: 50% 100%; filter: drop-shadow(0 5px 5px rgb(20 33 61 / .25)); }
.sizer-ref-label { position: absolute; right: 7%; bottom: 1.5%; font-size: .78rem; color: var(--navy-2); }
.sizer-rug { position: relative; z-index: 1; width: 100%; aspect-ratio: 1; display: grid; place-items: center; transform: scale(var(--s, .59)); transition: transform .12s ease-out; }
.sizer-rug img { width: 100%; height: 100%; object-fit: contain; filter: drop-shadow(0 16px 14px rgb(20 33 61 / .22)); }
.sizer-label { display: block; font-weight: 600; color: var(--navy-2); }
.sizer-cm { display: block; margin: 6px 0 14px; font-size: clamp(3rem, 6vw, 4.6rem); font-weight: 800; line-height: 1; letter-spacing: -.045em; font-variant-numeric: tabular-nums; }
.sizer-max-note { margin-top: 4px; font-size: .88rem; color: var(--navy-2); }
.sizer-price { margin-top: 16px; font-size: 1.15rem; }
.sizer-price strong { margin-left: 6px; font-size: 2.3rem; font-weight: 800; letter-spacing: -.035em; }
.sizer-note { margin: 8px 0 22px; max-width: 44ch; font-size: .95rem; color: var(--navy-2); }
input[type=range] { -webkit-appearance: none; appearance: none; display: block; width: 100%; height: 36px; background: transparent; cursor: pointer; }
input[type=range]::-webkit-slider-runnable-track { height: 6px; border-radius: 999px; background: linear-gradient(90deg, var(--orange) var(--fill, 44%), var(--line) var(--fill, 44%)); }
input[type=range]::-moz-range-track { height: 6px; border-radius: 999px; background: var(--line); }
input[type=range]::-moz-range-progress { height: 6px; border-radius: 999px; background: var(--orange); }
input[type=range]::-webkit-slider-thumb { -webkit-appearance: none; width: 28px; height: 28px; margin-top: -11px; border-radius: 50%; background: var(--navy); border: 4px solid var(--white); box-shadow: 0 0 0 2px var(--navy); }
input[type=range]::-moz-range-thumb { width: 20px; height: 20px; border-radius: 50%; background: var(--navy); border: 4px solid var(--white); box-shadow: 0 0 0 2px var(--navy); }
.tiers { list-style: none; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 14px; }
.tiers li:last-child { grid-column: 1 / -1; }
.tiers button { display: block; width: 100%; padding: 16px; text-align: left; background: var(--white); border: 2px solid transparent; border-radius: var(--r-md); box-shadow: var(--shadow-card); cursor: pointer; transition: border-color .25s, transform .25s var(--ease); }
.tiers .is-on button { border-color: var(--navy); transform: translateY(-3px); }
.t-size { display: block; font-size: .92rem; color: var(--navy-2); }
.t-price { display: block; margin-top: 2px; font-size: 1.25rem; font-weight: 750; letter-spacing: -.02em; }
@media (min-width: 900px) {
  .sizer { grid-template-columns: 1.2fr 1fr; gap: clamp(24px, 4vw, 56px); padding: clamp(28px, 4vw, 48px); }
  .tiers { grid-template-columns: repeat(5, 1fr); gap: 12px; margin-top: 16px; }
  .tiers li:last-child { grid-column: auto; }
}

/* faq */
.faq { display: grid; gap: 26px; }
.qa-list { border-top: 1px solid var(--hair); }
.qa { border-bottom: 1px solid var(--hair); }
.qa summary { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 44px; padding: 20px 0; list-style: none; cursor: pointer; }
.qa summary::-webkit-details-marker { display: none; }
.qa summary h3 { font-size: clamp(1.05rem, 1.5vw, 1.2rem); font-weight: 650; line-height: 1.3; letter-spacing: -.015em; }
.qa summary .i { width: 24px; height: 24px; transition: transform .3s var(--ease); }
.qa[open] summary .i { transform: rotate(45deg); }
.qa-a { max-width: 64ch; padding-bottom: 22px; color: var(--fg-2); }
.care { list-style: none; padding: 0; display: grid; gap: 12px; }
.care li { display: flex; align-items: flex-start; gap: 12px; }
.care .i { width: 24px; height: 24px; color: var(--navy); }
.care-warn { font-weight: 600; color: var(--navy); }
.care-warn .i { color: var(--orange-text); }
@media (min-width: 1000px) {
  .faq { grid-template-columns: minmax(0, .8fr) minmax(0, 1.4fr); align-items: start; gap: 64px; }
  .faq .h2 { position: sticky; top: 120px; }
}

/* contact */
.contact-page { padding-top: clamp(40px, 6vw, 80px); }
.contact-grid { display: grid; gap: 14px; }
.contact-card { display: grid; align-content: start; justify-items: start; gap: 8px; padding: 26px; background: var(--white); border-radius: var(--r-md); box-shadow: var(--shadow-card); }
.contact-card h2 { margin-top: 8px; font-size: .95rem; font-weight: 600; color: var(--navy-2); }
.contact-card address { font-style: normal; font-size: 1.15rem; font-weight: 600; line-height: 1.45; }
.contact-ic { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 50%; background: var(--orange-soft); color: var(--orange-text); }
.contact-ic .i { width: 24px; height: 24px; }
.contact-big { font-size: clamp(1.15rem, 1.8vw, 1.35rem); font-weight: 700; letter-spacing: -.015em; text-decoration: none; overflow-wrap: anywhere; }
@media (hover: hover) { .contact-big:hover { text-decoration: underline; text-decoration-color: var(--orange); text-decoration-thickness: 2px; text-underline-offset: 5px; } }
@media (min-width: 700px) { .contact-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1100px) { .contact-grid { grid-template-columns: repeat(4, 1fr); } }

/* footer */
.foot { padding-block: 64px 28px; color: var(--fg-2); }
.foot-grid { display: grid; gap: 32px; }
.foot-brand img { width: auto; height: 46px; }
.foot-brand p { max-width: 30ch; margin-top: 12px; }
.foot-brand address { margin-top: 14px; font-style: normal; line-height: 1.55; }
.foot-col { display: grid; gap: 2px; align-content: start; }
.foot-col h2 { margin-bottom: 8px; font-size: 1rem; font-weight: 650; color: var(--fg); }
.foot-col a { display: inline-flex; align-items: center; gap: 10px; width: fit-content; min-height: 40px; text-decoration: none; }
.foot-col .i { width: 20px; height: 20px; }
.foot-base { display: flex; flex-wrap: wrap; gap: 8px 22px; margin-top: 40px; padding-top: 20px; font-size: .9rem; border-top: 1px solid var(--hair); }
@media (hover: hover) { .foot-col a:hover, .foot-base a:hover { color: var(--fg); text-decoration: underline; text-underline-offset: 4px; } }
@media (min-width: 800px) { .foot-grid { grid-template-columns: 1.5fr 1fr 1fr; } }

/* phone: a request button within thumb reach once the hero is gone */
.sticky-cta { position: fixed; left: 0; right: 0; bottom: 0; z-index: 25; padding: 10px max(16px, env(safe-area-inset-right)) calc(10px + env(safe-area-inset-bottom)) max(16px, env(safe-area-inset-left)); background: color-mix(in srgb, var(--porcelain) 88%, transparent); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); border-top: 1px solid var(--line); transform: translateY(110%); transition: transform .35s var(--ease); }
.sticky-cta.is-on { transform: none; }
@media (min-width: 1000px) { .sticky-cta { display: none !important; } }

/* lightbox */
body:has(.lb[open]) { overflow: hidden; }
.lb { width: 100vw; max-width: 100vw; height: 100dvh; max-height: 100dvh; padding: 0; color: var(--porcelain); background: rgb(14 24 46 / .96); border: 0; overscroll-behavior: contain; }
.lb::backdrop { background: transparent; }
.lb[open] { display: grid; grid-template-columns: 1fr 1fr; grid-template-rows: minmax(0, 1fr) auto; }
.lb-fig { grid-column: 1 / -1; grid-row: 1; display: grid; grid-template-rows: minmax(0, 1fr) auto; justify-items: center; gap: 12px; min-height: 0; padding: 64px 12px 8px; }
.lb-stage { display: grid; place-items: center; width: 100%; height: 100%; min-height: 0; overflow: hidden; border-radius: var(--r-md); touch-action: pan-y; }
.lb-stage img { max-width: 100%; max-height: 100%; object-fit: contain; border-radius: var(--r-md); cursor: zoom-in; transform-origin: var(--ox, 50%) var(--oy, 50%); transition: transform .35s var(--ease); }
.lb-stage.is-zoomed { touch-action: none; }
.lb-stage.is-zoomed img { transform: scale(2.4); cursor: zoom-out; }
.lb-stage.is-panning img { transition: none; }
.lb-fig figcaption { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 14px; font-size: 1.15rem; font-weight: 700; }
.chip-light { color: var(--porcelain); border-color: rgb(242 239 233 / .4); }
.lb-x, .lb-nav { display: grid; place-items: center; width: 52px; height: 52px; color: var(--porcelain); background: rgb(242 239 233 / .12); border: 0; border-radius: 50%; cursor: pointer; transition: background-color .2s, color .2s; }
.lb-x .i, .lb-nav .i { width: 24px; height: 24px; }
.lb-x { position: absolute; top: max(12px, env(safe-area-inset-top)); right: 12px; z-index: 1; }
.lb-prev, .lb-next { grid-row: 2; justify-self: center; margin-bottom: max(20px, env(safe-area-inset-bottom)); }
.lb-prev { grid-column: 1; }
.lb-next { grid-column: 2; }
@media (hover: hover) { .lb-x:hover, .lb-nav:hover { background: var(--orange); color: var(--navy); } }
@media (min-width: 900px) {
  .lb[open] { grid-template-columns: 80px minmax(0, 1fr) 80px; grid-template-rows: 1fr; align-items: center; }
  .lb-fig { grid-column: 2; padding: 56px 0 24px; height: 100%; }
  .lb-prev, .lb-next { grid-row: 1; margin: 0; }
  .lb-prev { grid-column: 1; }
  .lb-next { grid-column: 3; }
}

/* privacy page and 404 */
.prose { max-width: 720px; padding-block: 56px 88px; }
.prose h2 { margin: 36px 0 10px; font-size: 1.3rem; font-weight: 700; line-height: 1.25; letter-spacing: -.02em; }
.prose p { color: var(--navy-2); max-width: 64ch; }
.prose a { color: var(--navy); text-decoration-color: var(--orange); text-underline-offset: 3px; }
.prose-meta { margin-top: 10px; font-size: .9rem; }
.prose-lead { margin-top: 18px; font-size: 1.15rem; color: var(--navy) !important; }
.prose-back { margin-top: 44px; }
.lost { display: grid; align-items: center; gap: 28px; min-height: calc(100dvh - 140px); padding-block: 48px 88px; }
.lost-rug { width: min(260px, 60vw); transform: rotate(-8deg); filter: drop-shadow(0 18px 16px rgb(20 33 61 / .25)); }
@media (min-width: 800px) { .lost { grid-template-columns: auto 1fr; gap: 72px; } }

/* motion: the hero appears at once (a fade-in would hide the main content from the browser's
   "largest contentful paint" and make the page count as slow); the rugs cross-fade from there.
   Only transform and opacity animate. */
@media (prefers-reduced-motion: no-preference) {
  .file { animation: pin .45s var(--ease) both; }
  .done:not([hidden]) { animation: up .6s var(--ease) both; }
}
@keyframes up { from { opacity: 0; transform: translateY(22px); } }
@keyframes pin { from { opacity: 0; transform: translateY(8px) scale(.94); } }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .stage-rug { transition: opacity .2s linear; transform: none; }
}
