:root {
  --red: #a82621;
  --red-deep: #8f1f1b;
  --ink: #282726;
  --muted: #666260;
  --line: #ded9d3;
  --paper: #f7f3ed;
  --white: #ffffff;
  --steel: #59616a;
  --shadow: 0 24px 70px rgba(40, 39, 38, 0.16);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Inter", Arial, sans-serif;
  color: var(--ink);
  background: var(--paper);
}

button,
input,
textarea {
  font: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 18px clamp(20px, 5vw, 72px);
  background: rgba(247, 243, 237, 0.92);
  border-bottom: 1px solid rgba(40, 39, 38, 0.08);
  backdrop-filter: blur(18px);
}

.brand {
  display: grid;
  gap: 5px;
  color: var(--ink);
  text-decoration: none;
}

.brand img {
  display: block;
  width: clamp(170px, 20vw, 280px);
  height: auto;
}

.brand-tagline {
  display: block;
  max-width: clamp(170px, 20vw, 280px);
  color: var(--red);
  font-size: clamp(0.66rem, 0.9vw, 0.78rem);
  font-weight: 900;
  line-height: 1.15;
  text-transform: uppercase;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 22px;
}

.menu-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--white);
  cursor: pointer;
}

.menu-toggle span,
.menu-toggle::before,
.menu-toggle::after {
  content: "";
  display: block;
  width: 20px;
  height: 2px;
  background: var(--ink);
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.menu-toggle {
  flex-direction: column;
  gap: 5px;
}

.main-nav a {
  color: var(--ink);
  font-size: 0.94rem;
  font-weight: 700;
  text-decoration: none;
}

.login-button,
.secondary-action,
.primary-action {
  min-height: 44px;
  border: 0;
  border-radius: 6px;
  cursor: pointer;
  font-weight: 800;
  text-decoration: none;
}

.login-button {
  padding: 0 18px;
  color: var(--white);
  background: var(--ink);
}

.primary-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 22px;
  color: var(--white);
  background: var(--red);
  box-shadow: 0 10px 24px rgba(168, 38, 33, 0.22);
}

.primary-action:hover {
  background: var(--red-deep);
}

.secondary-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 20px;
  color: var(--ink);
  background: var(--white);
  border: 1px solid var(--line);
}

.compact {
  min-height: 38px;
}

.hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(290px, 0.75fr);
  gap: clamp(32px, 6vw, 88px);
  align-items: end;
  min-height: calc(80vh - 66px);
  padding: clamp(44px, 6.4vw, 94px) clamp(20px, 5vw, 72px) 36px;
  overflow: hidden;
}

.blog-hero {
  padding: clamp(54px, 8vw, 106px) clamp(20px, 5vw, 72px);
  background: var(--ink);
  color: var(--white);
}

.blog-hero h1 {
  max-width: 1060px;
  font-size: clamp(2.9rem, 7vw, 7.4rem);
}

.blog-hero p:not(.eyebrow) {
  max-width: 850px;
  color: rgba(255, 255, 255, 0.76);
  font-size: 1.12rem;
  line-height: 1.7;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(105deg, transparent 0 62%, rgba(168, 38, 33, 0.1) 62% 64%, transparent 64%),
    radial-gradient(circle at 84% 22%, rgba(89, 97, 106, 0.18), transparent 32%);
}

.hero-copy,
.hero-panel,
.section-heading,
.portfolio-locked,
.portfolio-area,
.contact,
.site-footer {
  position: relative;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--red);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  overflow-wrap: anywhere;
}

h1 {
  max-width: 920px;
  margin: 0;
  font-size: clamp(3.2rem, 8.7vw, 8.4rem);
  line-height: 0.93;
  letter-spacing: 0;
}

.hero-copy > p:not(.eyebrow) {
  max-width: 720px;
  margin: 26px 0 0;
  color: var(--muted);
  font-size: clamp(1rem, 2vw, 1.2rem);
  line-height: 1.7;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 32px;
}

.hero-panel {
  display: grid;
  gap: 14px;
  padding-bottom: 10px;
}

.hero-panel div {
  padding: 22px;
  color: var(--white);
  background: var(--ink);
  border-left: 8px solid var(--red);
  box-shadow: var(--shadow);
}

.hero-panel span {
  display: block;
  font-size: 2.8rem;
  font-weight: 900;
  line-height: 1;
}

.hero-panel p {
  margin: 10px 0 0;
  color: rgba(255, 255, 255, 0.78);
  line-height: 1.5;
}

.section-band,
.process,
.contact {
  padding: clamp(56px, 8vw, 96px) clamp(20px, 5vw, 72px);
}

.section-band {
  background: var(--white);
}

.section-heading {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  gap: 28px;
  align-items: start;
  margin-bottom: 30px;
}

.section-heading h2,
.portfolio-locked h2,
.portfolio-topline h2,
.contact h2 {
  margin: 0;
  font-size: clamp(2rem, 4.5vw, 4.5rem);
  line-height: 1;
  letter-spacing: 0;
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}

.seo-intro {
  max-width: 980px;
  margin: -8px 0 32px;
  color: var(--muted);
  font-size: 1.03rem;
  line-height: 1.75;
}

.service-grid article {
  min-height: 300px;
  padding: 24px;
  background: var(--white);
}

.service-grid h3,
.work-card h3,
.faq-grid h3 {
  margin: 0;
  font-size: 1.35rem;
}

.service-grid h3 a {
  color: inherit;
  text-decoration: none;
}

.service-grid h3 a:hover,
.service-grid h3 a:focus-visible {
  color: var(--red);
  text-decoration: underline;
  text-underline-offset: 4px;
}

.service-grid p,
.process-list p,
.portfolio-locked p,
.work-card p,
.faq-grid p,
.contact-form label,
.site-footer p,
.login-note {
  color: var(--muted);
  line-height: 1.6;
}

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

.service-grid li {
  position: relative;
  padding-left: 18px;
  color: var(--ink);
  font-size: 0.94rem;
  font-weight: 700;
  line-height: 1.45;
}

.service-grid li::before {
  content: "";
  position: absolute;
  top: 0.62em;
  left: 0;
  width: 7px;
  height: 7px;
  background: var(--red);
}

.process-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  padding: 0;
  margin: 0;
  list-style: none;
}

.process-list li {
  padding: 26px;
  background: transparent;
  border-top: 5px solid var(--red);
}

.process-list span {
  display: block;
  margin-bottom: 22px;
  color: var(--steel);
  font-size: 0.9rem;
  font-weight: 900;
}

.process-list strong {
  display: block;
  font-size: 1.5rem;
}

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

.faq-grid article {
  padding: 24px;
  background: var(--paper);
  border-top: 5px solid var(--red);
}

.service-regions h3 a {
  color: inherit;
  text-underline-offset: 4px;
}

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

.blog-card {
  display: grid;
  grid-template-rows: auto auto 1fr auto;
  gap: 14px;
  min-height: 310px;
  padding: 24px;
  background: var(--white);
  border: 1px solid var(--line);
  border-top: 5px solid var(--red);
}

.blog-card.featured {
  grid-column: 1 / -1;
  min-height: 280px;
  background: var(--ink);
  color: var(--white);
  border-color: var(--ink);
}

.blog-card span,
.article-meta {
  color: var(--red);
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
}

.blog-card h3 {
  margin: 0;
  font-size: clamp(1.35rem, 2.4vw, 2.1rem);
  line-height: 1.12;
}

.blog-card.featured h3 {
  max-width: 880px;
  font-size: clamp(1.9rem, 4vw, 3.4rem);
}

.blog-card h3 a,
.text-link {
  color: inherit;
  text-decoration: none;
}

.blog-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.65;
}

.blog-card.featured p {
  color: rgba(255, 255, 255, 0.78);
}

.text-link {
  align-self: end;
  color: var(--red);
  font-weight: 900;
}

.blog-card.featured .text-link {
  color: var(--white);
}

.blog-plan {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(300px, 1.1fr);
  gap: clamp(28px, 6vw, 80px);
  padding: clamp(56px, 8vw, 96px) clamp(20px, 5vw, 72px);
  background: var(--paper);
}

.blog-plan h2 {
  margin: 0;
  font-size: clamp(2rem, 4vw, 4rem);
  line-height: 1;
}

.blog-plan ol {
  display: grid;
  gap: 14px;
  margin: 0;
  padding-left: 22px;
  color: var(--muted);
  line-height: 1.65;
}

.article-page {
  background: var(--white);
}

.article-shell {
  max-width: 920px;
  margin: 0 auto;
  padding: clamp(48px, 8vw, 92px) 20px;
}

.article-shell h1 {
  font-size: clamp(2.6rem, 6.3vw, 6.2rem);
}

.article-shell h2 {
  margin: 42px 0 12px;
  font-size: clamp(1.45rem, 2.6vw, 2.2rem);
  line-height: 1.1;
}

.article-shell p {
  color: var(--muted);
  font-size: 1.05rem;
  line-height: 1.78;
}

.article-lead {
  color: var(--ink) !important;
  font-size: 1.22rem !important;
}

.article-cta {
  margin-top: 48px;
  padding: clamp(24px, 5vw, 42px);
  background: var(--paper);
  border-left: 8px solid var(--red);
}

.article-cta h2 {
  margin-top: 0;
}

.portfolio-locked,
.portfolio-area {
  margin: 0 clamp(20px, 5vw, 72px) clamp(56px, 8vw, 96px);
  padding: clamp(30px, 5vw, 58px);
  background: var(--ink);
  color: var(--white);
}

.portfolio-locked {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 30px;
}

.portfolio-locked p,
.work-card p {
  max-width: 700px;
}

.portfolio-topline {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  align-items: start;
  margin-bottom: 26px;
}

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

.work-card {
  min-height: 260px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}

.work-card span {
  margin-bottom: auto;
  font-size: 0.8rem;
  font-weight: 900;
  text-transform: uppercase;
}

.work-card.red {
  background: var(--red);
}

.work-card.charcoal {
  background: #393837;
}

.work-card.steel {
  background: var(--steel);
}

.work-card.paper {
  background: var(--paper);
  color: var(--ink);
}

.work-card.red p,
.work-card.charcoal p,
.work-card.steel p {
  color: rgba(255, 255, 255, 0.78);
}

.contact {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(300px, 0.65fr);
  gap: clamp(28px, 6vw, 90px);
  background: var(--white);
}

.contact-form,
.login-card {
  display: grid;
  gap: 16px;
}

.form-trap {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  opacity: 0;
}

.contact-form label,
.login-card label {
  display: grid;
  gap: 8px;
  font-weight: 800;
}

.contact-form input,
.contact-form textarea,
.login-card input {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 13px 14px;
  color: var(--ink);
  background: #fbfaf8;
}

.contact-form textarea {
  resize: vertical;
}

.site-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 28px;
  padding: 34px clamp(20px, 5vw, 72px);
  background: var(--white);
  border-top: 1px solid var(--line);
}

.footer-brand {
  display: grid;
  gap: 12px;
  max-width: 620px;
}

.footer-brand img {
  display: block;
  width: min(230px, 52vw);
  height: auto;
  aspect-ratio: 1904 / 700;
  object-fit: contain;
}

.footer-brand p {
  margin: 0;
}

.footer-contact {
  display: grid;
  gap: 10px;
  font-style: normal;
}

.footer-contact span {
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.55;
}

.footer-contact a {
  color: var(--ink);
  font-weight: 800;
  text-decoration: none;
}

.footer-contact a:hover {
  color: var(--red);
}

.social-links {
  display: flex;
  gap: 10px;
}

.social-links a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  color: var(--white);
  background: var(--ink);
  border-radius: 6px;
  transition: background 0.2s ease, transform 0.2s ease;
}

.social-links a:hover {
  background: var(--red);
  transform: translateY(-2px);
}

.social-links svg {
  width: 21px;
  height: 21px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.social-links a:nth-child(2) svg,
.social-links a:nth-child(3) svg {
  fill: currentColor;
  stroke: none;
}

.login-dialog {
  width: min(440px, calc(100vw - 30px));
  padding: 0;
  border: 0;
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.login-dialog::backdrop {
  background: rgba(20, 20, 20, 0.62);
  backdrop-filter: blur(6px);
}

.login-card {
  position: relative;
  padding: 28px;
  background: var(--white);
}

.login-card img {
  width: 210px;
  max-width: 78%;
}

.login-card h2 {
  margin: 2px 0 0;
  font-size: 2rem;
}

.close-button {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 50%;
  cursor: pointer;
  color: var(--ink);
  background: var(--paper);
  font-size: 1.5rem;
  line-height: 1;
}

.login-error {
  min-height: 24px;
  margin: 0;
  color: var(--red);
  font-weight: 800;
}

@media (max-width: 980px) {
  .site-header {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 14px;
    padding: 12px 18px;
  }

  .brand img {
    width: clamp(150px, 48vw, 220px);
  }

  .brand-tagline {
    max-width: clamp(150px, 48vw, 220px);
    font-size: 0.62rem;
  }

  .menu-toggle {
    display: inline-flex;
  }

  .site-header.nav-open .menu-toggle span {
    opacity: 0;
  }

  .site-header.nav-open .menu-toggle::before {
    transform: translateY(7px) rotate(45deg);
  }

  .site-header.nav-open .menu-toggle::after {
    transform: translateY(-7px) rotate(-45deg);
  }

  .main-nav {
    display: none;
    grid-column: 1 / -1;
    width: 100%;
    align-items: stretch;
    flex-direction: column;
    gap: 0;
    padding: 8px;
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: 8px;
    box-shadow: 0 16px 36px rgba(40, 39, 38, 0.12);
  }

  .site-header.nav-open .main-nav {
    display: flex;
  }

  .main-nav a,
  .main-nav .login-button {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    width: 100%;
    min-height: 44px;
    padding: 11px 12px;
    border-radius: 4px;
    text-align: left;
  }

  .main-nav a:hover {
    background: var(--paper);
  }

  .main-nav .login-button {
    margin-top: 6px;
  }

  .portfolio-locked,
  .portfolio-topline,
  .site-footer {
    align-items: flex-start;
    flex-direction: column;
  }

  .hero,
  .section-heading,
  .contact,
  .blog-plan {
    grid-template-columns: 1fr;
  }

  .service-grid,
  .work-grid,
  .faq-grid,
  .blog-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .blog-card.featured {
    grid-column: 1 / -1;
  }

  .process-list {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 620px) {
  .main-nav a {
    font-size: 0.9rem;
  }

  .hero {
    min-height: auto;
  }

  h1 {
    font-size: clamp(2.6rem, 16vw, 4rem);
  }

  .service-grid,
  .work-grid,
  .faq-grid,
  .blog-grid {
    grid-template-columns: 1fr;
  }
}
