/* Four Seasons — fence builder site. Mobile-first. */
:root {
  --char: #1c1714;        /* logo black */
  --char-2: #2a221d;
  --ember: #d9542b;       /* logo orange */
  --ember-dark: #b8401c;
  --cedar: #b06a35;
  --cedar-light: #d9a26c;
  --cream: #f7f0e6;
  --sand: #efe3d1;
  --ink: #261e19;
  --muted: #6e5f54;
  --line: #e2d4c0;
  --white: #fffdf9;
  --radius: 14px;
  --shadow: 0 6px 24px rgba(40, 25, 15, .12);
  --header-h: 64px;
  --font-head: "Bitter", Georgia, serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; } /* hidden always wins over display rules like .btn */
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 8px); -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0; font-family: var(--font-body); font-size: 17px; line-height: 1.6;
  color: var(--ink); background: var(--cream);
  padding-bottom: calc(68px + env(safe-area-inset-bottom)); /* room for mobile action bar */
}
img { max-width: 100%; display: block; height: auto; }
a { color: var(--ember-dark); }
h1, h2, h3 { font-family: var(--font-head); line-height: 1.2; margin: 0 0 .5em; color: var(--char); }
h1 { font-size: clamp(1.9rem, 6.5vw, 3.3rem); }
h2 { font-size: clamp(1.6rem, 5vw, 2.4rem); }
h3 { font-size: 1.2rem; }
p { margin: 0 0 1em; }
.container { width: 100%; max-width: 1140px; margin: 0 auto; padding: 0 20px; }
.section { padding: 64px 0; }
.section.alt { background: var(--sand); }
.section.dark { background: var(--char); color: var(--cream); }
.section.dark h2, .section.dark h3 { color: var(--cream); }
.eyebrow { display: inline-block; font-size: .8rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--ember); margin-bottom: .6em; }
.lead { font-size: 1.1rem; color: var(--muted); max-width: 640px; }
.section.dark .lead { color: #cbbfb2; }
.center { text-align: center; }
.center .lead { margin-left: auto; margin-right: auto; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.todo { outline: 2px dashed var(--ember); outline-offset: 3px; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  min-height: 48px; padding: 0 22px; border-radius: 999px; border: 2px solid transparent;
  font: 700 1rem/1 var(--font-body); text-decoration: none; cursor: pointer; transition: transform .15s, background .15s;
}
.btn:active { transform: scale(.97); }
.btn-primary { background: var(--ember); color: #fff; }
.btn-primary:hover { background: var(--ember-dark); }
.btn-outline { border-color: currentColor; color: var(--char); background: transparent; }
.btn-light { background: var(--cream); color: var(--char); }
.btn svg { width: 20px; height: 20px; flex: none; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 50; height: var(--header-h);
  background: rgba(28, 23, 20, .96); backdrop-filter: saturate(1.4) blur(8px); color: var(--cream);
}
.site-header .container { display: flex; align-items: center; height: 100%; gap: 12px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--cream); text-decoration: none; margin-right: auto; }
.brand img { width: 44px; height: 44px; }
.brand-name { font-family: var(--font-head); font-weight: 800; font-size: 1.15rem; letter-spacing: .02em; line-height: 1.1; }
.brand-name small { display: block; font-family: var(--font-body); font-weight: 600; font-size: .68rem; letter-spacing: .12em; text-transform: uppercase; color: var(--cedar-light); }
.header-call { display: none; color: var(--cream); text-decoration: none; font-weight: 700; white-space: nowrap; }
.header-call:hover { color: var(--cedar-light); }
.nav-toggle {
  width: 46px; height: 46px; border: 0; border-radius: 10px; background: transparent; color: var(--cream); cursor: pointer;
  display: grid; place-items: center;
}
.nav-toggle svg { width: 28px; height: 28px; }
.site-nav {
  position: fixed; inset: var(--header-h) 0 auto 0; background: var(--char); padding: 8px 20px 24px;
  display: none; flex-direction: column; box-shadow: 0 20px 30px rgba(0,0,0,.35);
}
.site-nav.open { display: flex; }
.site-nav a { white-space: nowrap; color: var(--cream); text-decoration: none; font-weight: 600; font-size: 1.1rem; padding: 14px 4px; border-bottom: 1px solid #3a2f28; }
.site-nav a:hover, .site-nav a[aria-current="page"] { color: var(--cedar-light); }
.site-nav .nav-cta { margin-top: 16px; border: 0; }

@media (min-width: 960px) {
  .nav-toggle { display: none; }
  .site-nav { position: static; display: flex; flex-direction: row; align-items: center; background: none; padding: 0; box-shadow: none; gap: 4px; }
  .site-nav a { border: 0; font-size: .95rem; padding: 8px 10px; }
  .site-nav .nav-cta { margin: 0 0 0 8px; padding: 0 20px; color: #fff; }
}
@media (min-width: 1200px) { .header-call { display: inline-flex; align-items: center; gap: 6px; margin-left: 8px; } }

/* Mobile action bar */
.action-bar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 60; display: grid; grid-template-columns: 1fr 1fr; gap: 10px;
  padding: 10px 12px calc(10px + env(safe-area-inset-bottom)); background: rgba(28, 23, 20, .97);
  box-shadow: 0 -6px 20px rgba(0,0,0,.25);
}
.action-bar .btn { min-height: 50px; width: 100%; }
@media (min-width: 960px) {
  .action-bar { display: none; }
  body { padding-bottom: 0; }
}

/* Hero reel: two rows of photos drifting in opposite directions, logo in the middle */
.hero { background: var(--char); color: var(--cream); overflow: hidden; }
.reel { position: relative; padding: 14px 0; display: grid; gap: 10px; }
.reel-row { overflow: hidden; }
.reel-track { display: flex; gap: 10px; width: max-content; animation: reel-left 70s linear infinite; }
.reel-row:nth-child(2) .reel-track { animation-name: reel-right; animation-duration: 80s; }
.reel-track img { height: clamp(130px, 24vw, 230px); width: auto; border-radius: 10px; object-fit: cover; }
@keyframes reel-left { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@keyframes reel-right { from { transform: translateX(-50%); } to { transform: translateX(0); } }
@media (prefers-reduced-motion: reduce) { .reel-track { animation: none; } }
.reel::before, .reel::after { content: ""; position: absolute; top: 0; bottom: 0; width: 12%; z-index: 2; pointer-events: none; }
.reel::before { left: 0; background: linear-gradient(90deg, var(--char), transparent); }
.reel::after { right: 0; background: linear-gradient(-90deg, var(--char), transparent); }
.reel-logo {
  position: absolute; z-index: 3; left: 50%; top: 50%; transform: translate(-50%, -50%);
  width: clamp(150px, 34vw, 250px); aspect-ratio: 1; border-radius: 50%;
  box-shadow: 0 0 0 8px rgba(28,23,20,.85), 0 18px 50px rgba(0,0,0,.6);
}
.reel-logo img { width: 100%; height: 100%; }
.hero-copy { padding-top: 28px; padding-bottom: 44px; text-align: center; }
.hero-copy h1 { color: var(--cream); max-width: 820px; margin: 0 auto .4em; }
.hero-copy p { color: #d6c8b9; font-size: 1.1rem; max-width: 600px; margin: 0 auto 1.4em; }
.hero-ctas { display: flex; flex-direction: column; gap: 12px; max-width: 420px; margin: 0 auto; }
.badges { display: flex; justify-content: center; flex-wrap: wrap; gap: 10px; margin-top: 22px; padding: 0; list-style: none; }
.badges li { display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border: 1px solid #4a3c32; border-radius: 999px; font-weight: 600; font-size: .92rem; }
.badges svg { width: 18px; height: 18px; color: var(--ember); }
@media (min-width: 600px) { .hero-ctas { flex-direction: row; justify-content: center; max-width: none; } }

/* Story */
.story-grid { display: grid; gap: 28px; }
.story-card { background: var(--white); border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow); }
.story-photo { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.story-photo img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: center 60%; }
@media (min-width: 860px) { .story-grid { grid-template-columns: 1.1fr 1fr; align-items: center; gap: 48px; } }

/* Cards */
.cards { display: grid; gap: 18px; margin-top: 32px; }
@media (min-width: 700px) { .cards.three { grid-template-columns: repeat(3, 1fr); } .cards.two { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .cards.portfolio { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 640px) and (max-width: 999px) { .cards.portfolio { grid-template-columns: repeat(2, 1fr); } }
.card { background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; }
.card-body { padding: 20px 22px 22px; }
.card-body p { color: var(--muted); margin: 0; font-size: .98rem; }
.service-icon { width: 52px; height: 52px; border-radius: 12px; display: grid; place-items: center; background: var(--sand); color: var(--ember); margin-bottom: 14px; }
.service-icon svg { width: 28px; height: 28px; }
.card-photo { position: relative; display: block; width: 100%; padding: 0; border: 0; cursor: zoom-in; background: var(--sand); }
.card-photo img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }

/* Design teaser */
.design-teaser { display: grid; gap: 28px; align-items: center; }
.design-teaser .preview { background: var(--white); border-radius: var(--radius); padding: 12px; box-shadow: var(--shadow); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; padding: 0; margin: 0 0 22px; list-style: none; }
.chips li { padding: 6px 12px; border-radius: 999px; background: var(--white); border: 1px solid var(--line); font-size: .9rem; font-weight: 600; }
.section.dark .chips li { background: var(--char-2); border-color: #44372e; color: var(--cream); }
@media (min-width: 860px) { .design-teaser { grid-template-columns: 1fr 1.1fr; gap: 48px; } }

/* Albums */
.albums { display: grid; gap: 10px; margin-top: 24px; grid-template-columns: repeat(2, 1fr); }
@media (min-width: 700px) { .albums { gap: 18px; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); } }
.album { position: relative; display: block; width: 100%; padding: 0; border: 0; border-radius: var(--radius); overflow: hidden; cursor: pointer; text-align: left; box-shadow: var(--shadow); background: var(--char); color: var(--cream); font: inherit; }
.album img { width: 100%; aspect-ratio: 1; object-fit: cover; transition: transform .4s; opacity: .92; }
.album:hover img { transform: scale(1.04); }
.album-info { position: absolute; inset: auto 0 0 0; padding: 30px 12px 10px; background: linear-gradient(transparent, rgba(0,0,0,.82)); }
.album-info strong { display: block; font-family: var(--font-head); font-size: clamp(.95rem, 3.6vw, 1.15rem); line-height: 1.2; }
.album-info span { font-size: .88rem; color: #e2d6c9; }

/* Testimonials */
.quotes { display: grid; gap: 18px; margin-top: 28px; }
@media (min-width: 760px) { .quotes { grid-template-columns: repeat(auto-fit, minmax(260px, 440px)); justify-content: center; } } /* 1–3 reviews, centered */
.quote { background: var(--char-2); border-radius: var(--radius); padding: 24px; margin: 0; }
.quote p { font-size: 1.05rem; color: var(--cream); }
.quote footer { color: var(--cedar-light); font-weight: 700; font-size: .95rem; }
.stars { color: #f0b23a; letter-spacing: 2px; margin-bottom: 8px; }

/* Gallery */
.gallery { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; margin-top: 28px; }
@media (min-width: 700px) { .gallery { grid-template-columns: repeat(3, 1fr); gap: 12px; } }
@media (min-width: 1000px) { .gallery { grid-template-columns: repeat(4, 1fr); } }
.gallery button { padding: 0; border: 0; border-radius: 10px; overflow: hidden; cursor: zoom-in; background: var(--sand); }
.gallery img { width: 100%; aspect-ratio: 1; object-fit: cover; transition: transform .3s; }
.gallery button:hover img { transform: scale(1.05); }
.social-cta { margin-top: 28px; display: flex; justify-content: center; }

/* Quote form */
.quote-wrap { display: grid; gap: 32px; }
@media (min-width: 900px) { .quote-wrap { grid-template-columns: 1fr 1.2fr; align-items: start; } }
.form-card { background: var(--white); border-radius: var(--radius); padding: 22px; box-shadow: var(--shadow); color: var(--ink); }
.form-row { display: grid; gap: 14px; }
@media (min-width: 560px) { .form-row.two { grid-template-columns: 1fr 1fr; } }
.field { display: grid; gap: 6px; margin-bottom: 14px; }
.field label { font-weight: 600; font-size: .95rem; }
.field input, .field textarea, .field select {
  width: 100%; font: inherit; font-size: 16px; /* 16px stops iOS zoom-on-focus */
  padding: 12px 14px; border: 1.5px solid var(--line); border-radius: 10px; background: #fff; color: var(--ink);
}
.field input:focus, .field textarea:focus, .field select:focus { outline: none; border-color: var(--ember); box-shadow: 0 0 0 3px rgba(217,84,43,.18); }
.field input[aria-invalid="true"] { border-color: #c0392b; background: #fff7f5; }
.field-error { margin: 0; color: #b0281a; font-size: .85rem; font-weight: 600; }
.field-error:empty { display: none; }
.field textarea { min-height: 120px; resize: vertical; }
.design-attached { display: none; background: var(--sand); border: 2px solid var(--ember); border-radius: 10px; padding: 12px 14px; margin-bottom: 16px; font-size: .92rem; gap: 12px; align-items: start; grid-template-columns: 110px 1fr; }
.design-attached.show { display: grid; }
.design-attached strong, .design-attached span { display: block; }
.design-attached strong { color: #2f6b3f; margin-bottom: 2px; }
.da-thumb { background: var(--white); border-radius: 8px; padding: 2px; }
.da-thumb svg { display: block; width: 100%; height: auto; }
.da-next { color: var(--muted); margin-top: 4px; }
.design-attached button { background: none; border: 0; color: var(--ember-dark); font-weight: 700; cursor: pointer; padding: 0; margin-left: 4px; font-size: inherit; }

/* Design page: confirm before going to the quote form */
.design-confirm { border: 0; border-radius: var(--radius); padding: 22px; width: min(560px, calc(100vw - 32px)); max-height: calc(100dvh - 32px); overflow-y: auto; background: var(--cream); color: var(--ink); box-shadow: var(--shadow); }
.design-confirm::backdrop { background: rgba(12, 9, 7, .7); }
.design-confirm h2 { margin: 0 0 12px; font-size: 1.35rem; }
.dc-preview { background: var(--white); border-radius: 10px; padding: 6px; margin-bottom: 12px; }
.dc-preview svg { display: block; width: 100%; height: auto; }
.design-confirm .design-summary { margin: 0 0 12px; }
.dc-next { margin: 0 0 16px; font-size: .95rem; }
.review-list { display: grid; grid-template-columns: max-content 1fr; gap: 8px 14px; margin: 0 0 14px; padding: 14px; background: var(--white); border-radius: 10px; font-size: .95rem; }
.review-list dt { color: var(--muted); font-weight: 600; }
.review-list dd { margin: 0; font-weight: 600; overflow-wrap: anywhere; white-space: pre-line; }
.qr-design .dc-preview { max-width: 280px; }
@media (max-width: 420px) { .review-list { grid-template-columns: 1fr; gap: 2px; } .review-list dd { margin-bottom: 8px; } }
.form-card .btn { width: 100%; }
.req { color: var(--ember-dark); font-weight: 700; }
.req-note { margin: 0 0 10px; font-size: .85rem; color: var(--muted); }
.form-status { margin-top: 12px; font-weight: 600; }
.thanks { text-align: center; padding: 20px 0; }
.thanks svg { width: 56px; height: 56px; color: #2f8a4f; margin: 0 auto 10px; }
.contact-list { list-style: none; padding: 0; margin: 20px 0 0; display: grid; gap: 14px; }
.contact-list a { color: inherit; font-weight: 700; text-decoration: none; }
.contact-list li { display: flex; gap: 12px; align-items: center; }
.contact-list svg { width: 22px; height: 22px; color: var(--ember); flex: none; }

/* Footer */
.site-footer { background: #120e0c; color: #bfb1a3; padding: 44px 0 28px; font-size: .95rem; }
.footer-grid { display: grid; gap: 28px; }
@media (min-width: 760px) { .footer-grid { grid-template-columns: 1.4fr 1fr 1fr; } }
.site-footer a { color: var(--cream); text-decoration: none; }
.site-footer a:hover { color: var(--cedar-light); }
.site-footer h3 { color: var(--cream); font-size: 1rem; font-family: var(--font-body); letter-spacing: .08em; text-transform: uppercase; }
.footer-links { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.socials { display: flex; gap: 10px; margin-top: 14px; }
.socials a { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; background: #2a221d; }
.socials svg { width: 22px; height: 22px; }
.footer-bottom { border-top: 1px solid #2a221d; margin-top: 32px; padding-top: 18px; font-size: .85rem; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px; }

/* Lightbox */
.lightbox { border: 0; padding: 0; margin: 0; width: 100vw; height: 100dvh; max-width: none; max-height: none; background: rgba(12, 9, 7, .96); color: #fff; }
.lightbox::backdrop { background: rgba(12, 9, 7, .96); }
.lightbox[open] { display: grid; grid-template-rows: auto 1fr auto; }
.lb-top { display: flex; justify-content: space-between; align-items: center; padding: 10px 12px; padding-top: max(10px, env(safe-area-inset-top)); }
.lb-title { font-weight: 700; font-size: .95rem; padding-left: 6px; }
.lb-stage { position: relative; display: grid; place-items: center; min-height: 0; padding: 0 8px; touch-action: pan-y; }
.lb-stage img { max-width: 100%; max-height: 100%; object-fit: contain; border-radius: 6px; user-select: none; }
.lb-caption { text-align: center; padding: 10px 16px calc(16px + env(safe-area-inset-bottom)); color: #d6c8b9; font-size: .95rem; min-height: 1.5em; }
.lb-btn { width: 48px; height: 48px; border-radius: 50%; border: 0; background: rgba(255,255,255,.12); color: #fff; cursor: pointer; display: grid; place-items: center; }
.lb-btn svg { width: 24px; height: 24px; }
.lb-prev, .lb-next { position: absolute; top: 50%; transform: translateY(-50%); }
.lb-prev { left: 10px; } .lb-next { right: 10px; }
@media (max-width: 600px) { .lb-prev, .lb-next { top: auto; bottom: 8px; transform: none; } }

/* Simple page header (about, design) */
.page-hero { background: var(--char); color: var(--cream); padding: 40px 0 36px; }
.page-hero h1 { color: var(--cream); margin-bottom: .3em; }
.page-hero p { color: #d6c8b9; margin: 0; max-width: 640px; }

/* About page */
.owner { display: grid; gap: 28px; align-items: start; }
.portrait { width: 180px; aspect-ratio: 4 / 5; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); background: var(--sand); margin: 0 auto; }
.portrait img { width: 100%; height: 100%; object-fit: cover; }
.owner-quote { margin: 22px 0; padding: 16px 20px; background: var(--char); color: var(--cream); border-radius: var(--radius); font-family: var(--font-head); font-size: 1.15rem; line-height: 1.45; border-left: 5px solid var(--ember); }
.facts { list-style: none; padding: 0; margin: 20px 0; display: grid; gap: 10px; }
.facts li { background: var(--white); border-radius: 10px; padding: 12px 16px; border-left: 4px solid var(--ember); }
@media (min-width: 760px) { .owner { grid-template-columns: 240px 1fr; gap: 44px; } .portrait { width: 100%; margin: 0; } }

/* Fence designer */
.designer { padding: 0 0 64px; }
.designer > * { min-width: 0; }
.designer-preview { position: sticky; top: var(--header-h); z-index: 5; background: var(--cream); padding: 12px 0 10px; }
.preview-frame { position: relative; background: var(--white); border-radius: var(--radius); padding: 6px; box-shadow: var(--shadow); }
.view-toggle { position: absolute; top: 10px; left: 10px; display: flex; background: rgba(255,255,255,.92); border-radius: 999px; padding: 3px; box-shadow: 0 2px 8px rgba(0,0,0,.15); }
.view-toggle button { border: 0; background: none; border-radius: 999px; padding: 6px 10px; font: 600 .78rem var(--font-body); color: var(--muted); cursor: pointer; }
.view-toggle button[aria-pressed="true"] { background: var(--char); color: var(--cream); }
.design-summary { font-size: .95rem; margin: 6px 0 18px; padding: 12px 14px; background: var(--sand); border-radius: 10px; }
.design-summary span { color: var(--muted); }
.opt-group { border: 0; margin: 0 0 20px; padding: 0; min-width: 0; }
.opt-group legend { font-family: var(--font-head); font-weight: 800; font-size: 1.1rem; color: var(--char); margin-bottom: 8px; padding: 0; }
.opts { display: flex; flex-wrap: wrap; gap: 8px; }
.opt { position: relative; }
.opt[hidden] { display: none; }
.opt input { position: absolute; opacity: 0; pointer-events: none; }
.opt span {
  display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 8px 14px;
  border: 1.5px solid var(--line); border-radius: 999px; background: var(--white); font-weight: 600; font-size: .95rem; cursor: pointer;
}
.opt input:checked + span { border-color: var(--ember); background: #fff1ea; color: var(--ember-dark); box-shadow: 0 0 0 2px rgba(217,84,43,.15); }
.opt input:focus-visible + span { outline: 3px solid var(--ember); outline-offset: 2px; }
.opt input:disabled + span { opacity: .4; cursor: not-allowed; }
.swatch { width: 20px; height: 20px; border-radius: 50%; border: 1px solid rgba(0,0,0,.2); flex: none; }
.opt-help { font-size: .9rem; color: var(--muted); margin: 8px 2px 0; }
.opt-help:empty { display: none; }
.presets-field { margin-bottom: 22px; }
.presets-field label { font-weight: 700; }
.field select { appearance: none; padding-right: 40px; cursor: pointer; background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23261e19' stroke-width='2.5'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E") no-repeat right 14px center / 18px; }
.designer-actions { display: grid; gap: 10px; margin-top: 8px; }
.designer-actions .btn { width: 100%; }
.field-inline input { max-width: 160px; }
.post-qty { display: grid; grid-template-columns: minmax(0, 220px) 96px; gap: 0 12px; align-items: end; margin: 12px 0 0; }
.post-qty .field { margin-bottom: 0; }
.ext-note { grid-column: 1 / -1; margin: 10px 0 0; padding: 10px 12px; border-radius: 10px; background: #fff1ea; color: var(--ember-dark); font-weight: 600; font-size: .92rem; }
.ext-note:empty { display: none; }
.post-qty[hidden] { display: none; }
.gate-qty { margin: 12px 0 0; }
.gate-qty[hidden] { display: none; }
@media (min-width: 960px) {
  .designer { display: grid; grid-template-columns: 1.3fr 1fr; gap: 40px; align-items: start; padding-top: 28px; }
  .designer-preview { top: calc(var(--header-h) + 16px); padding: 0; background: none; }
}

.swipe-hint { display: none; font-size: .9rem; color: var(--muted); margin: 10px 0 0; }
/* Phone: portfolio becomes a swipeable row instead of six stacked cards */
@media (max-width: 639px) {
  .cards.portfolio {
    display: flex; overflow-x: auto; scroll-snap-type: x mandatory; gap: 14px;
    margin-left: -20px; margin-right: -20px; padding: 4px 20px 18px; scrollbar-width: none;
  }
  .cards.portfolio::-webkit-scrollbar { display: none; }
  .cards.portfolio .card { flex: 0 0 84%; scroll-snap-align: center; }
  .swipe-hint { display: block; }
  #design .chips { display: none; }
}
