:root {
  color-scheme: light;
  --paper: #fff9f1;
  --white: #fff;
  --ink: #251a29;
  --muted: #5d4c5a;
  --dark: #211324;
  --green: #803145;
  --line: #e8d8d7;
  --lime: #ffc84d;
  --radius: 18px;
  font: 16px/1.55 "Helvetica Neue", Arial, sans-serif;
  color: var(--ink);
  background: var(--paper);
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; }
h1, h2, h3, p { margin: 0; }
h1, h2, h3 { line-height: 1.06; letter-spacing: -.045em; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
button, input, select, textarea { font: inherit; }
button { cursor: pointer; }
:focus-visible { outline: 3px solid #ad3466; outline-offset: 4px; }
.hero :focus-visible { outline-color: var(--lime); }
.wrap { width: min(1184px, calc(100% - 96px)); margin-inline: auto; }
.skip { position: absolute; top: -100px; left: 16px; background: white; z-index: 3; padding: 8px 16px; }
.skip:focus { top: 12px; }
.site-header { background: #fff9f1; color: var(--ink); border-bottom: 1px solid #eddbd9; }
.header-inner { min-height: 80px; display: flex; justify-content: space-between; align-items: center; gap: 24px; }
.brand { display: inline-flex; align-items: center; gap: 11px; font-weight: 850; letter-spacing: .045em; font-size: 14px; line-height: 1.05; white-space: nowrap; }
.brand img { width: 128px; height: 61px; object-fit: contain; }
.brand span { align-self: end; padding-bottom: 7px; color: var(--ink); font-size: 11px; letter-spacing: .22em; }
.site-header nav { display: flex; align-items: center; gap: 34px; font-size: 14px; font-weight: 700; }
.site-header nav a { padding-block: 10px; }
.site-header nav a:hover, .site-header nav a[aria-current] { text-decoration: underline; text-underline-offset: 6px; }
.button, .text-link { display: inline-flex; align-items: center; justify-content: space-between; gap: 19px; font-weight: 750; }
.button { background: var(--lime); color: var(--ink); border: 1px solid transparent; padding: 13px 19px; min-height: 50px; border-radius: 8px; font-size: 15px; line-height: 1.25; }
.button:hover { background: #ffda7f; }
.button-small { min-height: 42px; padding: 10px 14px; font-size: 13px; }
.button-outline { background: transparent; border-color: var(--green); }
.button-outline:hover { background: var(--paper); }
.text-link { gap: 10px; font-size: 15px; }
.text-link:hover { text-decoration: underline; text-underline-offset: 4px; }
.hero { background: radial-gradient(ellipse at 84% 50%, #823149 0%, transparent 57%), linear-gradient(125deg, #24102a 22%, #49233e 74%, #6e293c); color: var(--paper); }
.hero-grid { display: grid; grid-template-columns: 1fr .9fr; align-items: center; gap: clamp(30px, 5vw, 75px); padding-block: clamp(44px, 5.5vw, 83px); }
.hero-copy { padding-block: 18px; }
.tag { font-size: 12px; line-height: 1.4; font-weight: 800; letter-spacing: .105em; text-transform: uppercase; color: var(--green); }
.hero-tag { display: flex; align-items: center; gap: 9px; color: var(--lime); margin-bottom: 21px; }
.hero-tag::before { content: ""; width: 17px; height: 2px; background: currentColor; }
.hero h1 { font-size: clamp(54px, 7.8vw, 111px); line-height: .92; letter-spacing: -.078em; }
.hero h1 em { font-style: normal; color: #ffcb54; }
.hero-intro { margin-top: 27px; color: #ffeddf; max-width: 420px; font-size: clamp(17px, 1.5vw, 20px); }
.hero-actions { margin-top: 29px; display: flex; align-items: center; flex-wrap: wrap; gap: 12px 22px; }
.hero-secondary { font-size: 14px; color: var(--paper); font-weight: bold; }
.hero-secondary:hover { text-decoration: underline; text-underline-offset: 4px; }
.hero-visual { position: relative; isolation: isolate; display: grid; align-items: end; min-width: 0; aspect-ratio: 1.19; padding: 20px; overflow: hidden; border-radius: var(--radius); border: 2px solid #ef9a83; background: #71314d; box-shadow: 10px 10px 0 #d34b6180; }
.hero-visual img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 50%; z-index: -2; }
.hero-visual::before { content: ""; position: absolute; inset: 35% 0 0; z-index: -1; background: linear-gradient(transparent, #280b24ed); }
.hero-caption { display: flex; align-items: end; justify-content: space-between; gap: 10px; font-size: 13px; color: var(--white); }
.hero-visual:hover .hero-caption strong { text-decoration: underline; text-underline-offset: 4px; }
.hero-caption strong { font-size: 23px; letter-spacing: -.035em; }
.section { padding-block: 43px; }
.section h2 { font-size: clamp(30px, 4vw, 50px); }
.section-head { display: flex; justify-content: space-between; align-items: baseline; gap: 20px; margin-bottom: 23px; }
.families, .cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 17px; }
.family { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 21px; border-radius: 12px; border: 1px solid var(--line); background: #eff6bf; }
.family:nth-child(2) { background: #ffe0d2; }
.family:nth-child(3) { background: #eee0ff; }
.family:hover { border-color: var(--green); }
.family h3 { font-size: clamp(18px, 2vw, 25px); margin-bottom: 8px; }
.family p { color: var(--muted); font-size: 14px; }
.section-products { padding-top: 14px; }
.cards { gap: 22px; }
.card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; min-width: 0; }
.card-picture, .partner-cover { aspect-ratio: 1.73; display: block; overflow: hidden; background: #f1ddeb; }
.card-picture img, .partner-cover img { width: 100%; height: 100%; object-fit: cover; }
.card-body { display: flex; flex: 1; align-items: flex-start; flex-direction: column; padding: 22px; gap: 9px; }
.card h3 { font-size: 25px; }
.card-body p:not(.tag) { color: var(--muted); font-size: 15px; }
.card-body .text-link { margin-top: auto; padding-top: 9px; }
.card h3 a:hover { text-decoration: underline; text-underline-offset: 3px; }
.approach { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(20px, 5vw, 74px); align-items: center; }
.approach-photo { overflow: hidden; border-radius: var(--radius); }
.approach-photo img { aspect-ratio: 1.8; width: 100%; object-fit: cover; }
.approach-copy p { color: var(--muted); margin: 15px 0 19px; max-width: 40ch; }
.enquiry-band { display: flex; align-items: center; justify-content: space-between; gap: 24px; background: var(--dark); color: var(--paper); padding: clamp(25px, 4vw, 49px); border-radius: var(--radius); }
.enquiry-band p { margin-top: 10px; color: #ffeddf; }
.enquiry-band .button { flex: none; }
.site-footer { background: #f4eaf5; color: var(--ink); border-top: 1px solid #e8d8e8; }
.footer-inner { min-height: 106px; display: flex; justify-content: space-between; align-items: center; gap: 17px; }
.footer-links { display: flex; gap: 12px 27px; flex-wrap: wrap; font-size: 14px; }
.footer-links a:hover { text-decoration: underline; text-underline-offset: 4px; }

.page-heading { background: #ffead8; padding-block: 32px 46px; }
.back { display: inline-block; font-weight: bold; font-size: 14px; margin-bottom: 18px; }
.back:hover { text-decoration: underline; }
.page-heading h1, .product-copy h1 { font-size: clamp(44px, 6.3vw, 82px); line-height: .97; }
.page-heading p { color: var(--muted); margin-top: 16px; font-size: 17px; }
.catalogue { padding-top: 30px; min-height: 350px; }
.filter-bar { display: flex; flex-wrap: wrap; gap: 8px; }
.filter-bar a { border-radius: 30px; border: 1px solid var(--line); padding: 8px 14px; background: var(--white); font-size: 14px; font-weight: 700; }
.filter-bar a[aria-current], .filter-bar a:hover { background: var(--dark); border-color: var(--dark); color: var(--white); }
.result-count { color: var(--muted); font-size: 14px; margin: 12px 0 19px; }
.partner-cover { display: grid; place-items: center; }

.product-page { padding-bottom: 65px; }
.product-grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(22px, 4.5vw, 66px); align-items: start; margin-top: 5px; }
.main-photo { overflow: hidden; border-radius: var(--radius); background: #f1e6ef; }
.main-photo img { width: 100%; height: auto; aspect-ratio: 1.4; object-fit: contain; }
.thumbs { display: flex; gap: 9px; margin-top: 13px; }
.thumb { padding: 3px; background: var(--white); border: 2px solid transparent; border-radius: 9px; width: min(96px, 24%); min-width: 0; }
.thumb[aria-pressed="true"] { border-color: var(--green); }
.thumb img { width: 100%; aspect-ratio: 1.45; object-fit: cover; border-radius: 5px; }
.product-copy h1 { margin-top: 13px; font-size: clamp(42px, 5.25vw, 70px); }
.product-intro { color: var(--muted); margin: 17px 0; font-size: 18px; }
.specs { margin: 20px 0; }
.specs div { display: grid; grid-template-columns: minmax(75px, .35fr) 1fr; gap: 12px; border-top: 1px solid var(--line); padding: 9px 0; }
.specs div:last-child { border-bottom: 1px solid var(--line); }
.specs dt { font-weight: bold; }
.specs dd { margin: 0; color: var(--muted); }
.product-details { margin-bottom: 22px; color: var(--muted); }

.form-layout { display: grid; grid-template-columns: 1.2fr 1fr; gap: 22px; align-items: start; }
.quote-form, .draft { padding: clamp(18px, 3vw, 32px); background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); }
.form-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 15px; margin-bottom: 18px; }
.form-fields label, .draft label { display: grid; gap: 5px; font-weight: bold; font-size: 14px; min-width: 0; }
.form-wide { grid-column: 1 / -1; }
input, select, textarea { display: block; width: 100%; min-height: 44px; padding: 8px 10px; border: 1px solid #b6a2b0; border-radius: 7px; background: var(--white); color: var(--ink); }
textarea { resize: vertical; }
.form-note, #draft-status { margin-top: 12px; color: var(--muted); font-size: 14px; }
.draft h2 { font-size: 29px; margin-bottom: 12px; }
.draft textarea { margin: 8px 0 11px; }

@media (max-width: 1000px) {
  .wrap { width: calc(100% - 60px); }
  .hero h1 { font-size: clamp(51px, 8.5vw, 86px); }
  .hero-actions { gap: 12px; }
  .hero-caption strong { font-size: 19px; }
  .family { padding: 14px; }
  .card-body { padding: 16px; }
}

@media (max-width: 760px) {
  .wrap { width: calc(100% - 36px); }
  .header-inner { flex-wrap: wrap; gap: 6px 11px; min-height: 0; padding-top: 13px; }
  .site-header nav { order: 3; width: 100%; gap: 22px; }
  .hero-grid { grid-template-columns: 1fr; gap: 22px; padding-block: 30px; }
  .hero-copy { padding-block: 4px; }
  .hero h1 { font-size: clamp(56px, 12vw, 85px); }
  .hero-intro, .hero-actions { margin-top: 17px; }
  .hero-visual { aspect-ratio: 1.48; }
  .section { padding-block: 29px; }
  .section-products { padding-top: 10px; }
  .families, .cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .families { gap: 9px; }
  .family { min-height: 95px; }
  .family p, .card-body p:not(.tag) { font-size: 13px; }
  .family h3 { margin-bottom: 5px; }
  .card h3 { font-size: 21px; }
  .cards { gap: 11px; }
  .approach, .product-grid, .form-layout { grid-template-columns: 1fr; }
  .enquiry-band, .footer-inner { align-items: flex-start; flex-direction: column; }
  .footer-inner { padding-block: 21px; }
  .product-grid { gap: 20px; }
}

@media (max-width: 440px) {
  .section-head { align-items: flex-start; flex-direction: column; gap: 7px; }
  .families, .cards, .form-fields { grid-template-columns: 1fr; }
  .family { min-height: 0; }
  .card-picture, .partner-cover { aspect-ratio: 1.9; }
  .hero-visual { padding: 14px; }
  .brand { gap: 5px; }
  .brand img { width: 93px; height: 45px; }
  .header-quote { font-size: 12px; gap: 7px; padding-inline: 9px; }
  .hero h1 { font-size: clamp(47px, 13.6vw, 65px); }
}

.techniques-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.technique { min-width: 0; border-top: 5px solid #913747; padding: 23px 19px; border-radius: 14px; background: #ffe4d8; }
.technique:nth-child(4n+2) { background: #f0e1ff; border-color: #724395; }
.technique:nth-child(4n+3) { background: #edf5c7; border-color: #5f710e; }
.technique:nth-child(4n+4) { background: #ffebbc; border-color: #946013; }
.technique h2, .legal-panel h2 { font-size: 25px; margin-bottom: 12px; }
.technique p, .legal-panel p { color: var(--muted); }
.legal-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.legal-panel { padding: 25px; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); }
.legal-panel p + p { margin-top: 14px; }
.legal-panel a { text-decoration: underline; text-underline-offset: 3px; overflow-wrap: anywhere; }
.catalogue-link-card { border-top: 5px solid #a4445b; }
.catalogue-link-card[data-family="general"] { border-color: #6f458a; background: #f6edff; }
.catalogue-link-card[data-family="textile"] { border-color: #677621; background: #fafbe9; }
.admin .site-header nav { justify-content: flex-end; flex-wrap: wrap; }
.admin .section h2 { font-size: 29px; }
.admin-layout { display: grid; grid-template-columns: minmax(220px, .8fr) minmax(0, 1.2fr); align-items: start; gap: 24px; }
.admin-login { max-width: 530px; margin-block: 35px; }
.admin-form label { display: grid; gap: 4px; margin-top: 13px; font-weight: 700; }
.admin-form .button { margin-top: 17px; }
.admin-form .checkbox { display: flex; align-items: center; gap: 9px; }
.admin-form .checkbox input { width: 18px; min-height: auto; height: 18px; }
.admin-note { color: var(--muted); margin: 9px 0; }
.admin-message { padding: 13px; margin-bottom: 16px; border-left: 4px solid var(--green); background: #f9e0eb; }
.admin-list { display: grid; gap: 8px; list-style: none; padding: 0; }
.admin-list a { display: flex; justify-content: space-between; align-items: center; gap: 7px; padding: 10px; background: var(--paper); border-radius: 8px; }
.admin-list a:hover, .admin-list a[aria-current] { outline: 2px solid var(--green); }
.admin-list small { color: var(--green); text-align: right; }
.admin-inline button { color: inherit; background: none; border: 0; padding: 0; font: inherit; font-weight: 700; }
.admin-inline button:hover { text-decoration: underline; }

@media (max-width: 900px) { .techniques-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 650px) { .admin-layout, .legal-grid { grid-template-columns: 1fr; } }
@media (max-width: 440px) { .techniques-grid { grid-template-columns: 1fr; } }


.hero-gallery { display: block; padding: 0; perspective: 1100px; }
.hero-gallery::before { content: none; }
.hero-sheet { position: absolute; inset: 0; z-index: 0; display: grid; align-items: end; padding: 20px; isolation: isolate; transform-origin: left top; }
.hero-sheet-current { z-index: 1; background: #71314d; }
.hero-sheet::before { content: ""; position: absolute; inset: 40% 0 0; z-index: -1; background: linear-gradient(transparent, #280b24e8); }
.hero-sheet .hero-caption { line-height: 1.3; }
.hero-scene-subtitle, .hero-sheet .hero-caption strong { display: block; }
.hero-scene-subtitle:empty { display: none; }
.hero-gallery:hover .hero-caption strong { text-decoration: none; }
.hero-gallery .hero-sheet:hover .hero-caption strong, .hero-sheet:focus-visible .hero-caption strong { text-decoration: underline; }
.hero-sheet:focus-visible { outline-offset: -5px; }
.hero-with-controls .hero-caption { max-width: calc(100% - 85px); }
.hero-gallery-controls { display: flex; gap: 7px; position: absolute; z-index: 2; }
.hero-control { color: #fff9f1; background: #211324e8; border: 1px solid #fff9f171; padding: 6px 9px; border-radius: 6px; font-size: 13px; font-weight: 700; }
.hero-control:hover { background: #4b273f; }
.hero-turn {
  position: absolute;
  bottom: 0;
  right: 0;
  min-width: 85px;
  min-height: 60px;
  color: #29152a;
  border: 0;
  border-radius: 12px 0 0 0;
  background: linear-gradient(137deg, #fff5e0 10%, #f7d8ba 53%, #ffc84d 54%, #ffdc7a 100%);
  box-shadow: -3px -4px 12px #23133282;
  font-size: 13px;
  font-weight: 800;
  padding: 23px 10px 8px;
  transition: background-color .18s ease, box-shadow .18s ease;
}
.hero-turn:hover { box-shadow: -6px -6px 16px #211324aa; }
.hero-turn:focus-visible { outline-offset: -4px; }
.hero-gallery-controls { top: 0; right: 0; bottom: 0; left: 0; pointer-events: none; justify-content: flex-end; align-items: flex-start; padding: 10px; }
.hero-gallery-controls button { pointer-events: auto; }
.visually-hidden { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }

.admin-media-preview { overflow: hidden; border-radius: 12px; background: var(--paper); border: 1px solid var(--line); margin-block: 12px; }
.admin-media-preview img { width: 100%; height: 100%; object-fit: cover; }
.admin-media-cover { aspect-ratio: 1.73; max-width: 380px; }
.admin-media-scene { aspect-ratio: 1.19; }
.admin-image-field input[type="file"] { font-weight: normal; }
.admin-image-error { color: #96263b; }
.admin-clear-image { background: none; border: 0; color: var(--green); padding: 0; cursor: pointer; }
.admin-form button:disabled { opacity: .65; cursor: default; }
.admin-list a span { overflow-wrap: anywhere; }
@media (max-width: 520px) {
  .hero-sheet { padding: 14px; }
  .hero-sheet .hero-caption strong { font-size: 18px; }
  .hero-gallery-controls { padding: 7px; }
  .hero-turn { min-height: 48px; min-width: 75px; padding-top: 15px; }
}
@media (prefers-reduced-motion: reduce) { .hero-turn { transition: none; } }
