:root {
  --accent: #c5261f;
  --accent-dark: #8f1714;
  --ink: #191919;
  --muted: #626262;
  --paper: #ffffff;
  --surface: #ffffff;
  --line: #e5e1dc;
  --soft: #f8f8f8;
  --shadow: 0 20px 50px rgba(0, 0, 0, 0.08);
  --shadow-deep: 0 30px 80px rgba(0, 0, 0, 0.12);
  --shadow-subtle: 0 8px 30px rgba(0, 0, 0, 0.05);
  --shadow-inset: inset 0 2px 4px rgba(0, 0, 0, 0.05);
  --radius: 30px;
  --header-height: 86px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 88px;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: Comfortaa, system-ui, sans-serif;
  line-height: 1.6;
}

img {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
select,
textarea {
  font: inherit;
}

code {
  padding: 2px 5px;
  background: #f0ece8;
  border-radius: calc(var(--radius) / 3);
  font-size: 0.9em;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  display: grid;
  grid-template-columns: 210px 1fr;
  align-items: center;
  min-height: var(--header-height);
  padding: 2px clamp(18px, 4vw, 64px);
  background: rgba(255, 255, 255, 0.3);
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
  backdrop-filter: blur(12px);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.site-header.is-scrolled {
  min-height: 60px;
  padding-top: 1px;
  padding-bottom: 1px;
  background: rgba(255, 255, 255, 0.85);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.03);
}

.site-header.is-scrolled .brand {
  height: 58px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  height: 82px;
  transition: height 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.brand img.logo {
  height: 100%;
  width: auto;
  object-fit: contain;
}

.site-nav {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: clamp(12px, 2.2vw, 34px);
}

.site-nav a {
  color: var(--ink);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-family: "Open Sans", sans-serif;
}

.site-nav a:hover,
.site-nav a.is-active {
  color: var(--accent);
}

.site-nav .nav-feature {
  color: var(--accent);
}

.site-nav .nav-feature::after {
  display: block;
  width: 100%;
  height: 1px;
  margin-top: 5px;
  content: "";
  background: var(--accent);
}

.site-nav .nav-subtle {
  color: #929292;
  font-size: 11px;
}

.site-nav .nav-cta {
  padding: 12px 20px;
  background: var(--accent);
  color: white;
  border-radius: var(--radius);
  box-shadow: 0 4px 12px rgba(197, 38, 31, 0.25);
}

.site-nav .nav-cta:hover,
.site-nav .nav-cta.is-active {
  background: var(--accent-dark);
  color: white;
}

.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  justify-self: end;
  border: 1px solid var(--line);
  background: var(--surface);
}

.nav-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  margin: 5px auto;
  background: var(--ink);
}

.section,
.hero,
.director-band {
  padding: clamp(68px, 9vw, 128px) clamp(20px, 6vw, 88px);
  position: relative;
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

#novetats { background: var(--paper); }
#projecte { background: var(--soft); }
.director-band { background: var(--paper); }
.method { background: var(--soft); }
#serveis { background: var(--paper); }
.spaces { background: var(--soft); }
#equip { background: var(--paper); }
.blog-preview { background: var(--soft); }
.calendar { background: var(--paper); }
.contact { background: var(--soft); }
.site-footer { background: rgb(51, 51, 51); }

.eyebrow {
  margin: 0 0 18px;
  color: var(--accent);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-family: "Open Sans", sans-serif;
}

h1,
h2,
h3,
blockquote {
  margin: 0;
  font-family: "Open Sans", system-ui, sans-serif;
  line-height: 1.15;
  letter-spacing: -0.01em;
}

h1 {
  max-width: 700px;
  font-size: clamp(38px, 5.4vw, 74px);
  font-weight: 800;
  line-height: 1.1;
}

h2 {
  max-width: 820px;
  font-size: clamp(34px, 5vw, 64px);
}

h3 {
  font-size: 28px;
}

.button {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 12px 24px;
  border: 1px solid var(--accent);
  background: transparent;
  color: var(--accent);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  font-family: "Open Sans", sans-serif;
  border-radius: var(--radius);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.button:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.1);
}

.button.primary {
  background: var(--accent);
  color: white;
}

.button.ghost,
.button.outline-red {
  background: white;
  box-shadow: var(--shadow-subtle);
}

.editorial-hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(320px, 0.92fr) minmax(360px, 1fr);
  align-items: stretch;
  gap: clamp(28px, 5vw, 64px);
  height: calc(0.8 * (100dvh - var(--header-height)));
  padding-top: clamp(20px, 3vw, 34px);
  padding-bottom: clamp(22px, 3.4vw, 38px);
  border-bottom: 1px solid var(--line);
  overflow: hidden;
}

.hero-copy {
  position: relative;
  display: grid;
  align-content: center;
  min-height: 0;
  padding-left: clamp(18px, 5vw, 78px);
}

.hero-copy::before {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  width: 1px;
  content: "";
  background: var(--accent);
}

.hero-copy > p:not(.eyebrow) {
  max-width: 590px;
  margin: clamp(10px, 1.5vh, 20px) 0 0;
  color: #3e3e3e;
  font-size: clamp(15px, 2vh, 17px);
  letter-spacing: 0.03em;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: clamp(18px, 2.8vh, 26px);
}

.hero-board {
  position: relative;
  min-height: 0;
  height: 100%;
  max-height: 100%;
  overflow: hidden;
  background:
    linear-gradient(90deg, transparent 0 8%, rgba(197, 38, 31, 0.55) 8% calc(8% + 1px), transparent calc(8% + 1px)),
    repeating-linear-gradient(0deg, #f8f8f8 0 31px, #e7e7e7 32px 33px);
}

.paper-sheet {
  position: absolute;
  top: clamp(20px, 10%, 72px);
  left: 14%;
  z-index: 2;
  display: grid;
  width: min(80%, 520px);
  color: var(--accent);
  font-family: "Reenie Beanie", cursive;
  font-size: clamp(38px, min(8vw, 10vh), 78px);
  line-height: 0.82;
  transform: rotate(-5deg);
}

.paper-sheet strong {
  font-weight: 400;
}

.paper-sheet em {
  font-style: normal;
  text-decoration: underline;
  text-decoration-thickness: 4px;
  text-underline-offset: 10px;
}

.hero-object.notebook {
  position: absolute;
  right: 4%;
  bottom: 2%;
  z-index: 3;
  width: min(24vw, 176px);
  padding: clamp(24px, 5vh, 36px) clamp(18px, 3vw, 24px);
  background: white;
  box-shadow: -18px 22px 45px rgba(0, 0, 0, 0.13);
  transform: rotate(10deg);
  border-radius: var(--radius);
}

.red-block {
  position: absolute;
  top: 4%;
  right: -5%;
  width: 28%;
  height: 24%;
  background: var(--accent);
  transform: rotate(12deg);
  border-radius: var(--radius);
}

.hero-dots {
  position: absolute;
  bottom: 22px;
  left: 50%;
  display: flex;
  gap: 8px;
  margin-top: 0;
  transform: translateX(-50%);
  z-index: 5;
}

.hero-dots button {
  width: 34px;
  height: 3px;
  padding: 0;
  border: 0;
  background: #d8d3cf;
  cursor: pointer;
}

.hero-dots button.active {
  background: var(--accent);
}

.section-head {
  margin-bottom: 34px;
}

.section-head.row {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 28px;
}

.section-note {
  max-width: 420px;
  color: var(--muted);
  font-size: 15px;
}

.promo-section {
  background: var(--surface);
  padding-top: clamp(34px, 5vw, 64px);
  padding-bottom: clamp(34px, 5vw, 64px);
}

.promo-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  padding: 2px;
}

.promo-card {
  display: grid;
  min-height: 270px;
  align-content: space-between;
  padding: 32px;
  background: var(--surface);
  border-radius: var(--radius);
  box-shadow: var(--shadow-subtle);
  border: 1px solid var(--line);
}

.promo-card .tag,
.blog-card .tag,
.team-card .tags span,
.space-card .tag {
  display: inline-flex;
  width: fit-content;
  padding: 6px 9px;
  border: 1px solid rgba(197, 38, 31, 0.24);
  color: var(--accent);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.promo-card h3 {
  margin: 22px 0 10px;
  font-family: Inter, system-ui, sans-serif;
  font-size: 28px;
  font-weight: 800;
  letter-spacing: 0.08em;
}

.promo-card p,
.quick-card small,
.prose p,
.service-panel p,
.space-card p,
.team-card p,
.calendar p,
.contact-copy p,
.work-copy p,
.values-row p {
  color: var(--muted);
}

.quick-links {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  background: var(--line);
  gap: 1px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.quick-card {
  display: grid;
  gap: 10px;
  min-height: 190px;
  padding: 28px;
  background: var(--surface);
  transition: all 0.3s ease;
  border-radius: var(--radius);
}

.quick-card:hover {
  color: var(--accent);
  transform: translateY(-4px);
}

.quick-card span,
.method-steps span,
.blog-card time {
  color: var(--accent);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.quick-card strong {
  align-self: end;
  font-family: Newsreader, serif;
  font-size: 30px;
  line-height: 1.05;
}

.split {
  display: grid;
  grid-template-columns: minmax(280px, 0.86fr) minmax(320px, 1fr);
  gap: clamp(32px, 7vw, 92px);
}

.prose p {
  margin-top: 0;
  font-size: 18px;
}

.director-band {
  display: grid;
  grid-template-columns: 180px minmax(0, 1fr);
  gap: 34px;
  align-items: center;
  margin: 0;
}

.director-band img {
  width: 180px;
  height: 180px;
  object-fit: cover;
  border-radius: 50%;
  box-shadow: var(--shadow-subtle);
}

.method .eyebrow,
.contact .eyebrow {
  color: var(--accent);
}

.director-band blockquote {
  max-width: 980px;
  font-family: "Open Sans", sans-serif;
  font-size: clamp(24px, 3vw, 42px);
  font-weight: 700;
  line-height: 1.2;
  position: relative;
  padding-left: 40px;
}

.director-band blockquote::before {
  content: "“";
  position: absolute;
  left: 0;
  top: -10px;
  font-size: 80px;
  color: var(--accent);
  opacity: 0.2;
  font-family: serif;
}

.director-band p:last-child {
  max-width: 850px;
  color: var(--muted);
}

.method {
  background: var(--soft);
  color: var(--ink);
}

.method-steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.method-steps article {
  padding: 24px;
  background: var(--surface);
  border-radius: var(--radius);
  box-shadow: var(--shadow-subtle);
  border: 1px solid var(--line);
}

.method-steps h3 {
  margin: 12px 0 8px;
  color: var(--ink);
}

.method-steps p {
  color: var(--muted);
}

.service-tabs,
.team-controls,
.chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.service-tabs button,
.team-controls button,
.chip-row button {
  min-height: 40px;
  padding: 10px 20px;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--muted);
  cursor: pointer;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  border-radius: var(--radius);
  transition: all 0.3s ease;
}

.service-tabs button.active,
.team-controls button.active,
.chip-row button.active {
  border-color: var(--accent);
  background: var(--accent);
  color: white;
}

.service-panel {
  min-height: 360px;
  margin-top: 18px;
  padding: clamp(28px, 5vw, 58px);
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  border-radius: var(--radius);
}

.service-panel-inner {
  display: grid;
  grid-template-columns: minmax(280px, 0.82fr) minmax(320px, 1fr);
  gap: clamp(28px, 5vw, 72px);
}

.service-panel h3 {
  margin-bottom: 18px;
  font-size: clamp(38px, 5vw, 60px);
}

.service-list {
  display: grid;
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.service-list li {
  padding: 16px;
  background: var(--soft);
  border-left: 3px solid var(--accent);
  font-weight: 700;
  border-radius: 0 var(--radius) var(--radius) 0;
}

.spaces {
  /* Aligned via nth-of-type */
}

.filter-bar {
  display: grid;
  grid-template-columns: 0.7fr 1fr;
  gap: 22px;
  margin-bottom: 24px;
  padding: 24px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-subtle);
}

.filter-bar span {
  display: block;
  margin-bottom: 10px;
  color: var(--accent);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.space-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.space-more {
  display: none;
  margin: 28px auto 0;
}

.space-more[hidden] {
  display: none;
}

.space-card {
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--line);
  cursor: pointer;
  border-radius: var(--radius);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.space-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-subtle);
}

.space-card img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.space-card div {
  padding: 22px;
}

.space-card h3 {
  margin: 12px 0 8px;
  font-family: Inter, system-ui, sans-serif;
  font-size: 22px;
  font-weight: 850;
  letter-spacing: 0.06em;
}

.team-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
}

.team-controls-below {
  margin: -8px 0 26px;
}

.team-card {
  display: grid;
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.team-card:hover {
  box-shadow: var(--shadow);
  transform: translateY(-5px);
}

.team-card.is-special {
  border-color: var(--line);
}

.team-card.is-special .role {
  width: fit-content;
  padding: 6px 12px;
  background: var(--soft);
  color: var(--accent);
  border-radius: var(--radius);
}

.team-card img {
  width: 100%;
  aspect-ratio: 300 / 204;
  object-fit: cover;
  filter: grayscale(0.08);
}

.team-card-content {
  display: grid;
  gap: 10px;
  padding: 18px;
}

.team-card h3 {
  font-family: Inter, system-ui, sans-serif;
  font-size: 21px;
  font-weight: 850;
  letter-spacing: 0.06em;
}

.team-card .role {
  color: var(--accent);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.team-card .bio {
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  font-size: 14px;
  color: var(--muted);
  line-height: 1.5;
}

.team-card .tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: auto;
}

.team-card .tags span {
  font-size: 10px;
  padding: 4px 10px;
  background: var(--soft);
  color: var(--accent);
  border-radius: 20px;
  font-weight: 700;
  text-transform: uppercase;
  border: 1px solid var(--line);
}

.team-card-action {
  display: none;
}

.profile-modal {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: grid;
  place-items: center;
  padding: 20px;
  background: rgba(17, 17, 17, 0.52);
}

.profile-dialog {
  position: relative;
  display: grid;
  width: min(520px, 100%);
  max-height: calc(100svh - 40px);
  overflow: auto;
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  border-radius: var(--radius);
}

.profile-dialog img {
  width: 100%;
  aspect-ratio: 300 / 204;
  object-fit: cover;
}

.profile-dialog-content {
  display: grid;
  gap: 12px;
  padding: 22px;
}

.profile-close {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 38px;
  height: 38px;
  border: 1px solid var(--line);
  background: white;
  color: var(--accent);
  cursor: pointer;
  font-size: 24px;
  line-height: 1;
  border-radius: var(--radius);
}

.team-more {
  margin: 28px auto 0;
}

.team-more[hidden] {
  display: none;
}

.profile-dialog .role {
  width: fit-content;
  padding: 6px 9px;
  background: var(--accent);
  color: white;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.profile-dialog .tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.profile-dialog .tags span {
  display: inline-flex;
  width: fit-content;
  height: auto;
  padding: 6px 12px;
  border: 1px solid rgba(197, 38, 31, 0.24);
  color: var(--accent);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  border-radius: calc(var(--radius) / 2);
}

.profile-dialog .meta {
  color: var(--muted);
}

.blog-preview,
.blog-page {
  /* Aligned via nth-of-type */
}

.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.blog-card {
  display: grid;
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.blog-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-subtle);
}

.blog-card img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.blog-card-content {
  display: grid;
  gap: 10px;
  padding: 22px;
}

.blog-card h3 {
  font-size: 30px;
}

.work-with-us,
.work-page {
  display: grid;
  grid-template-columns: minmax(320px, 0.88fr) minmax(360px, 1fr);
  gap: clamp(34px, 6vw, 86px);
  align-items: center;
  background: var(--paper);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.work-copy {
  position: relative;
  padding-left: clamp(18px, 4vw, 72px);
}

.work-copy::before {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  width: 1px;
  content: "";
  background: var(--accent);
}

.work-copy p:not(.eyebrow) {
  max-width: 580px;
  font-size: 18px;
}

.work-paper {
  min-height: 480px;
  padding: 90px 9vw 40px;
  background:
    linear-gradient(90deg, transparent 0 8%, rgba(197, 38, 31, 0.55) 8% calc(8% + 1px), transparent calc(8% + 1px)),
    repeating-linear-gradient(0deg, #f8f8f8 0 31px, #e6e6e6 32px 33px);
  color: var(--accent);
  font-family: "Reenie Beanie", cursive;
  font-size: clamp(58px, 8vw, 108px);
  line-height: 0.86;
  transform: rotate(1deg);
}

.work-paper span,
.work-paper em,
.work-paper strong {
  display: block;
  font-weight: 400;
}

.work-paper em {
  font-style: normal;
}

.work-paper strong {
  text-decoration: underline;
  text-decoration-thickness: 4px;
  text-underline-offset: 10px;
}

.values-row {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}

.values-row article {
  padding: 28px;
  background: var(--surface);
  text-align: center;
}

.values-row span {
  color: var(--accent);
  font-size: 38px;
}

.values-row h3 {
  margin: 16px 0 8px;
  font-family: Inter, system-ui, sans-serif;
  font-size: 14px;
  font-weight: 900;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.work-page {
  min-height: 620px;
}

.work-values {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--line);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.work-values article {
  padding: 30px;
  background: var(--surface);
  text-align: center;
}

.work-svg,
.work-icon {
  display: block;
  width: 42px;
  height: 42px;
  margin: 0 auto;
  fill: none;
  stroke: var(--accent);
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
}

.work-values h3 {
  margin: 16px 0 8px;
  font-family: Inter, system-ui, sans-serif;
  font-size: 14px;
  font-weight: 900;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.work-apply {
  display: grid;
  grid-template-columns: minmax(280px, 0.65fr) minmax(360px, 1fr);
  gap: clamp(28px, 6vw, 78px);
  align-items: start;
}

.application-form {
  display: grid;
  gap: 14px;
  padding: 24px;
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.application-form label {
  display: grid;
  gap: 7px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.application-form input,
.application-form select,
.application-form textarea {
  width: 100%;
  padding: 13px 14px;
  border: 1px solid var(--line);
  background: white;
  color: var(--ink);
  border-radius: var(--radius);
}

.application-form input[type="file"] {
  padding: 11px;
  background: var(--soft);
}

.calendar {
  display: grid;
  grid-template-columns: minmax(280px, 0.6fr) minmax(420px, 1fr);
  gap: clamp(28px, 6vw, 80px);
  align-items: start;
}

.calendar-widget {
  padding: 24px;
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-subtle);
  border-radius: var(--radius);
}

.calendar-toolbar {
  display: grid;
  grid-template-columns: 42px 1fr 42px;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
}

.calendar-toolbar strong {
  text-align: center;
  font-family: "Open Sans", sans-serif;
  font-size: 17px;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.calendar-toolbar button {
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  background: white;
  color: var(--accent);
  cursor: pointer;
  font-size: 18px;
  border-radius: var(--radius);
}

.calendar-filters {
  margin-bottom: 16px;
}

.calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}

.calendar-day,
.calendar-weekday {
  min-height: 58px;
  padding: 8px;
  background: white;
}

.calendar-weekday {
  min-height: auto;
  color: var(--accent);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-align: center;
  text-transform: uppercase;
}

.calendar-day {
  position: relative;
  color: #333;
  font-size: 13px;
}

.calendar-day.is-muted {
  color: #b5b5b5;
  background: #f7f6f4;
}

.calendar-day.has-event {
  outline: 2px solid var(--accent);
  outline-offset: -2px;
}

.calendar-dot {
  position: absolute;
  right: 8px;
  bottom: 8px;
  width: 7px;
  height: 7px;
  background: var(--accent);
  border-radius: 50%;
}

.calendar-list {
  display: grid;
  gap: 10px;
  margin-top: 16px;
}

.calendar-event {
  display: grid;
  grid-template-columns: 74px 1fr;
  gap: 12px;
  padding: 12px;
  background: var(--soft);
  border-left: 3px solid var(--accent);
}

.calendar-event time {
  color: var(--accent);
  font-weight: 900;
}

.calendar-event strong {
  display: block;
  margin-bottom: 2px;
}

.contact {
  display: grid;
  grid-template-columns: minmax(300px, 0.92fr) minmax(320px, 0.72fr);
  gap: clamp(30px, 6vw, 86px);
}

.contact-copy p,
.contact a {
  color: var(--muted);
}

.location-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  margin-top: 34px;
}

.location-grid article {
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}

.social-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 24px;
}

.social-links a {
  padding: 9px 18px;
  border: 1px solid var(--line);
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  border-radius: var(--radius);
  background: var(--surface);
}

.contact-form {
  display: grid;
  gap: 20px;
  padding: clamp(24px, 4vw, 48px);
  background: var(--surface);
  border-radius: var(--radius);
  box-shadow: var(--shadow-deep);
  border: 1px solid var(--line);
}

.contact-form label {
  display: grid;
  gap: 7px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.contact-form input,
.contact-form select,
.contact-form textarea {
  width: 100%;
  padding: 16px 20px;
  border: 1px solid var(--line);
  background: white;
  color: var(--ink);
  border-radius: var(--radius);
  transition: all 0.3s ease;
  outline: none;
}

.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 4px rgba(197, 38, 31, 0.1);
}

.contact-form .button {
  width: 100%;
  cursor: pointer;
}

.whatsapp {
  text-align: center;
  font-weight: 900;
}

.site-footer {
  display: flex;
  flex-wrap: nowrap;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  padding: 10px clamp(20px, 6vw, 88px);
  background: rgb(51, 51, 51);
  color: rgba(255, 255, 255, 0.5);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  font-family: "Open Sans", sans-serif;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.site-footer p {
  margin: 0;
}

.site-footer a {
  color: rgba(255, 255, 255, 0.8);
  transition: color 0.3s ease;
}

.site-footer a:hover {
  color: white;
}

.site-footer div {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

.floating-wa {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 50;
  width: 64px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.floating-wa:hover {
  transform: scale(1.1) translateY(-5px);
}

.floating-wa img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.legal-page {
  max-width: 980px;
  margin: 0 auto;
  padding: clamp(70px, 9vw, 120px) 20px;
}

.legal-page h1 {
  margin: 34px 0 18px;
  font-size: clamp(34px, 5vw, 58px);
}

.legal-page h2,
.legal-page h3 {
  margin: 34px 0 16px;
  font-size: 20px;
  font-weight: 800;
}

.legal-page p {
  color: #3e3e3e;
}

.legal-source {
  margin-top: 42px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
  font-size: 14px;
}

.blog-hero {
  display: grid;
  grid-template-columns: minmax(320px, 0.9fr) minmax(320px, 1fr);
  gap: clamp(32px, 6vw, 86px);
  align-items: center;
  border-bottom: 1px solid var(--line);
}

.blog-tools {
  display: grid;
  gap: 16px;
  padding: 20px;
  background: var(--surface);
  border: 1px solid var(--line);
}

.blog-tools input,
.blog-tools select {
  min-height: 46px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  background: white;
}

.blog-layout {
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  gap: 28px;
}

.template-card {
  position: sticky;
  top: 110px;
  padding: 22px;
  background: var(--soft);
  border: 1px solid var(--line);
}

.post-article {
  max-width: 860px;
  margin: 0 auto;
  padding: clamp(68px, 9vw, 118px) 20px;
}

.post-article img {
  width: 100%;
  max-height: 520px;
  object-fit: cover;
  margin: 28px 0;
}

.post-article h1 {
  font-family: Newsreader, Georgia, serif;
  font-size: clamp(42px, 6vw, 78px);
  letter-spacing: 0;
}

.post-body {
  color: #333;
  font-size: 19px;
}

.post-body h2 {
  margin-top: 42px;
  font-size: 38px;
}

.post-body p {
  margin: 18px 0;
}

.post-body ul {
  padding-left: 22px;
}

@media (max-width: 1160px) {
  .site-header {
    grid-template-columns: 1fr auto;
  }

  .nav-toggle {
    display: block;
  }

  .site-nav {
    position: absolute;
    top: 86px;
    right: 20px;
    left: 20px;
    display: none;
    padding: 18px;
    background: var(--surface);
    border: 1px solid var(--line);
    box-shadow: var(--shadow);
  }

  .site-nav.is-open {
    display: grid;
    justify-content: stretch;
  }

  .site-nav a,
  .site-nav .nav-cta {
    padding: 12px;
  }

  .site-nav .nav-feature::after {
    width: 42px;
  }

  .editorial-hero,
  .split,
  .service-panel-inner,
  .work-with-us,
  .work-page,
  .work-apply,
  .contact,
  .calendar,
  .blog-hero,
  .blog-layout {
    grid-template-columns: 1fr;
  }

  .team-grid,
  .space-grid,
  .promo-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 780px) {
  .section {
    padding: 58px 20px;
  }
  .hero {
    padding: 20px;
  }

  .editorial-hero {
    grid-template-rows: auto 1fr;
    height: calc(0.8 * (100dvh - var(--header-height)));
    gap: 10px;
    padding-top: 30px;
  }

  h1 {
    font-size: clamp(28px, 9vw, 42px);
    line-height: 1.1;
  }

  .brand-word {
    font-size: 17px;
  }

  .hero-board {
    height: 100%;
    min-height: 0;
  }

  .paper-sheet {
    font-size: clamp(38px, 12vw, 54px);
  }

  .hero-object.notebook {
    width: min(32vw, 130px);
    padding: 12px;
  }

  .red-block {
    width: 22%;
    height: 18%;
  }

  .work-paper {
    font-size: clamp(54px, 15vw, 78px);
  }

  .quick-links,
  .method-steps,
  .blog-grid,
  .values-row,
  .location-grid,
  .filter-bar {
    grid-template-columns: 1fr;
  }

  .promo-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }

  .promo-card {
    padding: 16px;
    min-height: auto;
    cursor: pointer;
    border-radius: calc(var(--radius) / 2);
  }

  .promo-card h3 {
    font-size: 14px;
    margin: 8px 0 4px;
    letter-spacing: 0.02em;
  }

  .promo-card .promo-text,
  .promo-card .promo-cta {
    display: none;
  }

  .promo-card::after {
    content: "Veure més";
    display: block;
    margin-top: 8px;
    font-size: 10px;
    font-weight: 900;
    color: var(--accent);
    text-transform: uppercase;
    letter-spacing: 0.05em;
  }

  .work-values {
    grid-template-columns: repeat(2, 1fr);
  }

  .team-grid,
  .space-grid,
  .blog-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }

  .blog-card-content {
    gap: 8px;
    padding: 12px;
  }

  .blog-card h3 {
    font-size: 18px;
  }

  .blog-card p {
    font-size: 12px;
  }

  .space-more {
    display: inline-flex;
  }

  .space-card div {
    padding: 12px;
  }

  .space-card h3 {
    margin: 8px 0 6px;
    font-size: 15px;
    letter-spacing: 0.02em;
  }

  .space-card p {
    font-size: 12px;
  }

  .space-card .tag {
    font-size: 9px;
    letter-spacing: 0.08em;
  }

  .team-card {
    cursor: pointer;
  }

  .team-card-content {
    gap: 8px;
    padding: 12px;
  }

  .team-card h3 {
    font-size: 15px;
    letter-spacing: 0.03em;
  }

  .team-card .role,
  .team-card-content > p:not(.role) {
    display: none;
  }

  .team-card .tags span {
    padding: 5px 7px;
    font-size: 9px;
    letter-spacing: 0.08em;
  }

  .team-card-action {
    display: inline-flex;
    width: fit-content;
    padding: 0;
    border: 0;
    background: transparent;
    color: var(--accent);
    cursor: pointer;
    font-size: 10px;
    font-weight: 900;
    letter-spacing: 0.12em;
    text-transform: uppercase;
  }

  .section-head.row {
    align-items: start;
    flex-direction: column;
  }

  .director-band {
    grid-template-columns: 1fr;
    margin: 0 20px;
  }

  .calendar-grid {
    font-size: 12px;
  }

  .calendar-day {
    min-height: 46px;
    padding: 6px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition: none !important;
  }
}

/* Scroll Animations */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
  pointer-events: none;
}

.reveal.active {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.reveal-left {
  transform: translateX(-30px);
}

.reveal-right {
  transform: translateX(30px);
}

.reveal-scale {
  transform: scale(0.95);
}

.delay-1 { transition-delay: 0.1s; }
.delay-2 { transition-delay: 0.2s; }
.delay-3 { transition-delay: 0.3s; }
.delay-4 { transition-delay: 0.4s; }
.delay-5 { transition-delay: 0.5s; }

@media (prefers-reduced-motion: reduce) {
  .reveal {
    transition: none;
    opacity: 1;
    transform: none;
  }
}

/* Responsive Fixes for Small Screens */
@media (max-width: 580px) {
  .promo-grid,
  .work-values,
  .team-grid,
  .space-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 10px !important;
  }
  
  .hero-actions {
    flex-direction: column;
  }
  
  .hero-actions .button {
    width: 100%;
  }
}
