/* Hallmark · shape: Portfolio Grid (draw dealt Letter; swapped, no owner's own words to sign a letter) · genre: editorial · theme: Atelier (deal 1/3, seed paesma-pavimentos-especiales-mallorca-d411·34b0fc4d·2026-11-25·r0) · job: hire · draw: f25194
 * hero: Poster · nav: floating pill · footer: index columns · imagery: photographs, the client's own 12 from paesma.es, warm · signature: PAESMA's twelve printed-paving colours as stained blotter strips on a rail, the chosen one dropped beside its tinted sample
 * axes: light/roman-serif/cool · posture: restrained · contrast: pass · fold: pass · brand: PAESMA (spec 2026-11-25) · air: still frame, no WebGL · v2.0.0 */
/* Hallmark · pre-emit critique: P4 H4 E4 S5 R4 V5 · weakest: H, a light page of photographs can go flat; set the slogan large in Sentient light and kept one dark ink rule per list */
/* Hallmark · answered F9 · the sample tile shows PAESMA's 12 colours as flat swatches multiplied over their own texture photos, because the colour is the choice */
@import url("./tokens.css");
@import url("./base.css");

:root {
  /* PAESMA's printed-paving colours, copied from paesma.es/pavimento-estampado */
  --sw-amarillo: #ae906e; --sw-beige-palma: #cfcec6; --sw-arenisca: #9e8150; --sw-guadarrama: #93805a;
  --sw-cobre: #9a8062; --sw-rojo-dragonera: #957e6a; --sw-tostado: #706155; --sw-monegros: #808066;
  --sw-gris-especial: #c5c5c5; --sw-orense: #b4b4b4; --sw-gris-claro: #a3a3a3; --sw-pirineo: #4e4e4d;
  --stain: var(--sw-amarillo);
  --fibre: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='f'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0.45 0 0 0 0 0.38 0 0 0 0 0.3 0 0 0 0.07 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23f)'/%3E%3C/svg%3E");
  --grain: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='g'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='1.15' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0.4 0 0 0 0 0.33 0 0 0 0 0.25 0 0 0 0.5 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23g)'/%3E%3C/svg%3E");
  --veils: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='1200' height='900'%3E%3Cfilter id='v'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.0016 0.0032' numOctaves='3' seed='7'/%3E%3CfeColorMatrix values='0 0 0 0 0.99 0 0 0 0 0.93 0 0 0 0 0.8 0 0 0 1.3 -0.45'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23v)'/%3E%3C/svg%3E");
  --press: inset 1px 1px 2px oklch(30% 0.03 55 / 0.08); --press-on: inset 1px 1px 2px oklch(30% 0.03 55 / 0.12);
  --nav-h: 68px;
}

body { color: var(--color-ink-2); line-height: 1.6; }
h1, h2 { font-weight: var(--display-weight); color: var(--color-ink); }
h3 { font-weight: var(--serif-small); color: var(--color-ink); }
.statement { font-family: var(--font-display); font-weight: var(--statement-weight); letter-spacing: var(--tracking-statement); color: var(--color-ink); line-height: 1.08; overflow-wrap: break-word; min-width: 0; text-wrap: balance; }

/* The still air behind the page; paper sections cover it */
.air { position: fixed; inset: 0; z-index: -1; background: var(--veils) center / cover, var(--color-paper); pointer-events: none; }
.air::after { content: ""; position: absolute; inset: 0; background-image: var(--grain); background-size: 180px; opacity: 0.16; mix-blend-mode: multiply; }
body { background: transparent; }
.paper { background: var(--color-paper); }

.note { position: relative; z-index: var(--z-raised); background: var(--color-paper-2); color: var(--color-muted); font-size: var(--text-sm); text-align: center; padding: var(--space-xs) var(--space-md); }
.skip { position: absolute; left: var(--space-md); top: calc(-1 * var(--space-3xl)); z-index: var(--z-toast); padding: var(--space-xs) var(--space-md); background: var(--color-ink); color: var(--color-paper); }
.skip:focus-visible { top: var(--space-md); }

/* Nav: floating pill */
.nav-wrap { position: sticky; top: var(--space-sm); z-index: var(--z-sticky-nav); padding-inline: var(--gutter); height: 0; }
.nav { max-width: calc(var(--container) - 2 * var(--gutter)); margin: var(--space-sm) auto 0; min-height: var(--nav-h); display: flex; align-items: center; justify-content: space-between; gap: var(--space-lg); padding: var(--space-xs) var(--space-xs) var(--space-xs) var(--space-lg); background: color-mix(in oklab, var(--color-card) 94%, transparent); border-radius: var(--radius-pill); box-shadow: var(--shadow-card); backdrop-filter: blur(8px); }
.nav__mark img { height: 40px; width: auto; }
.nav__links { display: flex; gap: var(--space-lg); list-style: none; margin: 0; padding: 0; }
.nav__links a, .nav__tel { color: var(--color-ink-2); text-decoration: none; font-size: var(--text-sm); white-space: nowrap; }
.nav__links a:hover, .nav__tel:hover { color: var(--color-ink); text-decoration: underline; text-decoration-color: var(--color-accent); }
.nav__end { display: flex; align-items: center; gap: var(--space-md); }
.nav__menu { display: none; position: static; }
.nav__menu summary { list-style: none; cursor: pointer; min-height: 48px; display: inline-flex; align-items: center; padding: 0 var(--space-md); border: var(--rule-hair) solid var(--color-ink); border-radius: var(--radius-pill); color: var(--color-ink); }
.nav__menu summary::-webkit-details-marker { display: none; }
.nav__menu summary:hover { background: var(--color-ink); color: var(--color-paper); }
.nav__menu summary:active { transform: translateY(1px); }
.nav__menu summary:focus-visible { outline: 2px solid var(--color-focus); outline-offset: 2px; }
.nav__menu ul { position: absolute; left: 0; right: 0; top: calc(100% + var(--space-xs)); list-style: none; margin: 0; padding: var(--space-xs) var(--space-lg); background: var(--color-card); border-radius: var(--radius-pill); box-shadow: var(--shadow-card); }
.nav__menu li + li { border-top: var(--rule-hair) solid var(--color-rule); }
.nav__menu ul a { display: block; padding: var(--space-md) 0; color: var(--color-ink); text-decoration: none; font-size: var(--text-lg); }

/* Controls */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: var(--space-xs); min-height: 52px; padding: 0 var(--space-lg); border: var(--rule-hair) solid var(--color-ink); border-radius: var(--radius-pill); background: transparent; color: var(--color-ink); font: 400 var(--text-md)/1 var(--font-body); white-space: nowrap; text-decoration: none; cursor: pointer; transition: background-color var(--dur-short) var(--ease-out), color var(--dur-short) var(--ease-out), transform var(--dur-micro) var(--ease-out); }
.btn:hover { background: var(--color-ink); color: var(--color-paper); }
.btn:active { transform: translateY(1px); }
.btn:focus-visible { outline: 2px solid var(--color-focus); outline-offset: 2px; }
.btn:disabled, .btn[aria-disabled="true"] { opacity: 0.55; cursor: not-allowed; transform: none; }
.btn[aria-busy="true"] { cursor: progress; }
.link { color: var(--color-ink); text-decoration: underline; text-decoration-color: var(--color-accent); text-underline-offset: 0.22em; }
.link:hover { color: var(--color-accent); }
.link--btn { background: none; border: 0; padding: 0; font: inherit; cursor: pointer; min-height: 44px; }
.link--btn:active { transform: translateY(1px); }
.link--btn:disabled { opacity: 0.55; cursor: not-allowed; }
.link:focus-visible { outline: 2px solid var(--color-focus); outline-offset: 2px; }

/* Hero: Poster */
.hero { position: relative; min-height: 94dvh; display: grid; align-items: end; }
.hero__photo { position: absolute; inset: 0; margin: 0; }
.hero__inner { position: relative; z-index: 2; width: 100%; padding-bottom: var(--space-2xl); padding-top: calc(var(--nav-h) + var(--space-3xl)); }
.plate { position: relative; max-width: 40rem; padding: var(--space-xl); display: grid; gap: var(--space-md); }
.plate h1 { font-size: var(--text-display); line-height: 1.04; max-width: 14ch; }
.plate .lead { color: var(--color-ink-2); max-width: 38ch; }
.plate__actions { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-lg); margin-top: var(--space-xs); }

/* Card stock */
.stock { position: relative; border-radius: 2px; background: var(--fibre) 0 0 / 220px, linear-gradient(160deg, var(--card-lit), var(--color-card) 55%, var(--card-shade)); box-shadow: var(--shadow-card), inset 1px 1px 0 var(--lit); }
.stock::before { content: ""; position: absolute; inset: 0.875rem; border: var(--rule-hair) solid var(--color-card-edge); pointer-events: none; }
.stock > * { position: relative; }

/* Statement */
.say { padding-block: var(--section-gap-l) var(--section-gap); }
.say__grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gap-columns); row-gap: var(--space-2xl); }
.say .statement { grid-column: 1 / span 10; font-size: var(--text-display); max-width: none; }
.say__text { grid-column: 6 / span 6; display: grid; gap: var(--space-md); }
.dropcap::first-letter { float: left; font: var(--serif-small) 3.3em/0.8 var(--font-display); padding: 0.1em 0.1em 0 0; color: var(--color-accent); }
.pencil { font-size: var(--text-sm); color: var(--color-pencil); display: flex; gap: var(--space-sm); align-items: baseline; }
.pencil::before { content: ""; width: var(--space-2xl); border-bottom: var(--rule-hair) solid var(--color-pencil); }

/* Oficios: rows under an ink rule */
.oficios { padding-block: var(--section-gap) var(--section-gap-s); }
.head { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gap-columns); row-gap: var(--space-md); align-items: end; margin-bottom: var(--space-2xl); }
.head h2 { grid-column: 1 / span 7; font-size: var(--text-section); }
.head .lead { grid-column: 8 / span 5; color: var(--color-ink-2); }
.ruled { list-style: none; margin: 0; padding: 0; border-top: var(--rule-head) solid var(--color-ink); }
.ruled > li { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); column-gap: var(--gap-columns); align-items: start; padding-block: var(--space-lg); border-bottom: var(--rule-hair) solid var(--color-rule); }
.ruled__name { display: flex; gap: var(--space-md); align-items: center; }
.ruled__name img { width: 32px; height: 32px; flex-shrink: 0; }
.ruled h3 { font-size: var(--text-title); }
.ruled p { max-width: 58ch; }
.ruled small { display: block; margin-top: var(--space-xs); font-size: var(--text-sm); color: var(--color-muted); }

/* Trabajos: portfolio grid with a filter row */
.work { padding-block: var(--section-gap-s) var(--section-gap); }
.filters { display: flex; flex-wrap: wrap; gap: var(--space-xs); margin: 0 0 var(--space-xl); padding: 0; border: 0; }
.filters legend { width: 100%; margin-bottom: var(--space-sm); font-size: var(--text-sm); color: var(--color-muted); }
.chip { position: relative; }
.chip input { position: absolute; left: 0; top: 0; width: 1px; height: 1px; margin: 0; opacity: 0; }
.chip span { display: inline-flex; align-items: center; gap: var(--space-xs); min-height: 44px; padding: 0 var(--space-md); border: var(--rule-hair) solid var(--color-rule); border-radius: var(--radius-pill); background: var(--color-card); color: var(--color-ink-2); font-size: var(--text-sm); cursor: pointer; box-shadow: var(--press); transition: border-color var(--dur-short) var(--ease-out), color var(--dur-short) var(--ease-out); }
.chip span:hover { border-color: var(--color-ink-2); color: var(--color-ink); }
.chip input:checked + span { border-color: var(--color-ink); color: var(--color-ink); box-shadow: 0 0 0 1px var(--color-ink), var(--press-on); }
.chip input:focus-visible + span { outline: 2px solid var(--color-focus); outline-offset: 2px; }
.chip input:disabled + span { opacity: 0.55; cursor: not-allowed; }
.chip:active span { transform: translateY(1px); }
.grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--space-2xl) var(--gap-columns); }
.grid [hidden] { display: none; }
.piece figure { margin: 0; }
.piece [data-slot] { aspect-ratio: 4 / 5; }
.piece figcaption { margin-top: var(--space-sm); display: flex; justify-content: space-between; align-items: baseline; gap: var(--space-md); font-size: var(--text-sm); }
.piece figcaption b { color: var(--color-ink); font-weight: 400; }
.piece figcaption .link { white-space: nowrap; }

/* Colores: the blotter strips */
.colores { padding-block: var(--section-gap) var(--section-gap); }
.colores__grid { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: var(--space-3xl); align-items: start; }
.strips { border: 0; margin: 0; padding: 0; min-width: 0; }
.strips legend, .patterns legend { margin-bottom: var(--space-sm); font-size: var(--text-sm); color: var(--color-muted); }
.rail { position: relative; display: flex; gap: var(--space-sm); padding: var(--space-lg) var(--space-xs) var(--space-xl); overflow-x: auto; scrollbar-width: thin; border-top: var(--rule-head) solid var(--color-ink); }
.strip { position: relative; flex: 0 0 auto; }
.strip input { position: absolute; left: 0; top: 0; width: 1px; height: 1px; margin: 0; opacity: 0; }
.strip span { position: relative; display: block; width: 44px; height: 220px; cursor: pointer; border-radius: 2px 2px 0 0; clip-path: polygon(0 0, 100% 0, 100% 88%, 50% 100%, 0 88%); background: linear-gradient(to top, var(--sw) 0%, var(--sw) 30%, color-mix(in oklab, var(--sw) 45%, var(--color-card)) 52%, var(--color-card) 74%), var(--fibre) 0 0 / 220px; transition: transform var(--dur-long) var(--ease-out); }
.strip b { position: absolute; top: var(--space-sm); left: 50%; transform: translateX(-50%) rotate(180deg); writing-mode: vertical-rl; font-weight: 400; font-size: var(--text-xs); color: var(--color-ink-2); white-space: nowrap; }
.strip span:hover { transform: translateY(var(--space-xs)); }
.strip input:checked + span { transform: translateY(var(--space-lg)); box-shadow: 0 0 0 1px var(--color-ink); }
.strip input:focus-visible + span { outline: 2px solid var(--color-focus); outline-offset: 3px; }
.strip input:disabled + span { opacity: 0.55; cursor: not-allowed; }
.strip:active span { transform: translateY(var(--space-md)); }
.js .rail.unfurl .strip span { animation: unfurl var(--dur-long) var(--ease-out) both; animation-delay: calc(var(--i, 0) * 40ms); }
@keyframes unfurl { from { opacity: 0; transform: translateY(calc(-1 * var(--space-xl))); } to { opacity: 1; } }
.patterns { border: 0; margin: var(--space-xl) 0 0; padding: 0; min-width: 0; }
.patterns__set { display: flex; flex-wrap: wrap; gap: var(--space-xs); }
.print { margin: 0; padding: var(--space-lg); }
.print__tile { aspect-ratio: 1; background-color: var(--stain); background-size: cover; background-position: center; background-blend-mode: multiply; transition: background-color var(--dur-long) var(--ease-out); }
.print figcaption { margin-top: var(--space-md); display: grid; gap: var(--space-2xs); font-size: var(--text-sm); }
.print figcaption b { font-family: var(--font-display); font-weight: var(--serif-small); font-size: var(--text-lg); color: var(--color-ink); }
.print figcaption span { color: var(--color-muted); }
.marks { margin: var(--space-xl) 0 0; border-top: var(--rule-head) solid var(--color-ink); }
.marks div { display: flex; justify-content: space-between; padding-block: var(--space-sm); border-bottom: var(--rule-hair) solid var(--color-rule); }
.marks dt { font-size: var(--text-sm); }
.marks dd { margin: 0; font-family: var(--font-display); font-weight: var(--serif-small); color: var(--color-ink); font-variant-numeric: tabular-nums; }

/* Presupuesto: the card */
.contacto { padding-block: var(--section-gap-s) var(--section-gap-l); }
.contacto__grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: var(--space-3xl); align-items: start; }
.contacto h2 { font-size: var(--text-section); }
.facts { margin: var(--space-xl) 0 0; border-top: var(--rule-head) solid var(--color-ink); }
.facts div { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 3fr); gap: var(--space-md); padding-block: var(--space-md); border-bottom: var(--rule-hair) solid var(--color-rule); }
.facts dt { font-size: var(--text-sm); color: var(--color-muted); }
.facts dd { margin: 0; color: var(--color-ink); overflow-wrap: anywhere; }
.facts a { color: var(--color-ink); }
.card { padding: var(--space-2xl) var(--space-xl); }
.card__mark { height: 34px; width: auto; margin-bottom: var(--space-lg); }
.form { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-lg) var(--space-xl); }
.form .full { grid-column: 1 / -1; }
.form label.f { display: block; font-size: var(--text-sm); color: var(--color-muted); }
.form input[type=text], .form input[type=tel], .form textarea { width: 100%; min-height: 48px; padding: var(--space-xs) 0; border: 0; border-bottom: var(--rule-hair) solid var(--color-ink-2); border-radius: 0; background: transparent; color: var(--color-ink); outline: 2px solid transparent; outline-offset: 2px; }
.form textarea { min-height: 120px; resize: vertical; line-height: 28px; background-image: repeating-linear-gradient(to bottom, transparent 0 27px, var(--color-rule) 27px 28px); background-attachment: local; }
.form input:focus-visible, .form textarea:focus-visible { outline-color: var(--color-focus); }
.form [aria-invalid] { border-bottom-color: var(--color-error); }
.form input:disabled, .form textarea:disabled { opacity: 0.55; cursor: not-allowed; }
.needs { border: 0; margin: 0; padding: 0; min-width: 0; }
.needs legend { margin-bottom: var(--space-sm); font-size: var(--text-sm); color: var(--color-muted); }
.needs__set { display: flex; flex-wrap: wrap; gap: var(--space-xs); }
.consent { display: flex; gap: var(--space-sm); align-items: flex-start; font-size: var(--text-sm); }
.consent input { width: 20px; height: 20px; flex-shrink: 0; margin-top: var(--space-3xs); accent-color: var(--color-ink); }
.consent input:focus-visible { outline: 2px solid var(--color-focus); outline-offset: 2px; }
.send { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-lg); }
.help { min-height: 1lh; font-size: var(--text-sm); color: var(--color-ink-2); }

/* Footer: index columns */
.foot { padding-block: var(--section-gap-s) var(--space-xl); border-top: var(--rule-head) solid var(--color-ink); }
.foot__cols { display: grid; grid-template-columns: minmax(0, 4fr) repeat(3, minmax(0, 2fr)); gap: var(--gap-columns); padding-bottom: var(--space-2xl); border-bottom: var(--rule-hair) solid var(--color-rule); }
.foot__cols > div > img { height: 44px; width: auto; margin-bottom: var(--space-md); }
.foot h3 { font-family: var(--font-body); font-size: var(--text-sm); font-weight: 400; color: var(--color-muted); margin-bottom: var(--space-sm); }
.foot ul { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--space-xs); }
.foot a { color: var(--color-ink-2); text-decoration: none; }
.foot a:hover { color: var(--color-ink); text-decoration: underline; text-decoration-color: var(--color-accent); }
.foot__legal { margin-top: var(--space-lg); font-size: var(--text-sm); color: var(--color-muted); display: grid; gap: var(--space-2xs); }

@media (max-width: 60rem) {
  .nav__links, .nav__tel { display: none; }
  .nav__menu { display: block; }
  .nav { position: relative; padding-left: var(--space-md); }
  .nav__mark img { height: 34px; }
  .hero { min-height: 0; }
  .hero__photo { position: relative; aspect-ratio: 4 / 3; }
  .hero__inner { padding-top: 0; padding-bottom: var(--space-xl); margin-top: calc(-1 * var(--space-2xl)); }
  .plate { padding: var(--space-lg); }
  .say .statement, .say__text, .head h2, .head .lead { grid-column: 1 / -1; }
  .ruled > li { grid-template-columns: minmax(0, 1fr); row-gap: var(--space-sm); }
  .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .colores__grid, .contacto__grid { grid-template-columns: minmax(0, 1fr); gap: var(--space-2xl); }
  .print { max-width: 30rem; }
  .foot__cols { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .foot__cols > :first-child { grid-column: 1 / -1; }
}
@media (max-width: 40rem) {
  .hero__photo { aspect-ratio: 1; }
  .grid { grid-template-columns: minmax(0, 1fr); }
  .piece [data-slot] { aspect-ratio: 4 / 3; }
  .form { grid-template-columns: minmax(0, 1fr); }
  .card { padding: var(--space-xl) var(--space-lg); }
  .facts div { grid-template-columns: minmax(0, 1fr); gap: var(--space-2xs); }
  .foot__cols { grid-template-columns: minmax(0, 1fr); }
  .strip span { width: 40px; height: 190px; }
}
@media (prefers-reduced-motion: reduce) {
  .js .rail.unfurl .strip span { animation: none; }
  .btn, .chip span, .strip span, .print__tile { transition: none; }
}
