/* Mad Barbers — Website #109
   Bold Barbershop × Cut-Mark Poster Modernism
   Fully offline. HTML + CSS only. */

:root {
  --off: #f6f4ed;
  --paper: #fbf9f3;
  --black: #151617;
  --red: #e63a33;
  --yellow: #e7ed3f;
  --grey: #a2a6a8;
  --navy: #1d2f45;
  --line: rgba(21,22,23,.14);
  --sans: Arial, Helvetica, sans-serif;
  --mono: "Courier New", Courier, monospace;
  --shadow: 0 18px 44px rgba(18,21,24,.10);
}

*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  color: var(--black);
  background:
    linear-gradient(180deg, rgba(230,58,51,.04), transparent 18rem),
    var(--off);
  font-family: var(--sans);
  line-height: 1.6;
  overflow-x: hidden;
}

a { color: inherit; }

.skip-link {
  position: fixed;
  left: 1rem;
  top: 1rem;
  z-index: 999;
  padding: .7rem 1rem;
  background: var(--black);
  color: var(--paper);
  text-decoration: none;
  transform: translateY(-160%);
}

.skip-link:focus { transform: translateY(0); }

.shell {
  width: min(1160px, calc(100% - 40px));
  margin-inline: auto;
}

.section {
  padding: 5rem 0;
  scroll-margin-top: 7rem;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid var(--line);
  background: rgba(246,244,237,.95);
  backdrop-filter: blur(10px);
}

.header-inner {
  min-height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}

.brand {
  display: grid;
  text-decoration: none;
  line-height: 1;
}

.brand-main {
  font-size: 1.18rem;
  font-weight: 900;
  letter-spacing: -.02em;
  text-transform: uppercase;
}

.brand-sub {
  margin-top: .25rem;
  color: var(--red);
  font-family: var(--mono);
  font-size: .62rem;
  letter-spacing: .11em;
}

.main-nav,
.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 1.1rem;
}

.main-nav a,
.footer-nav a {
  text-decoration: none;
  font-size: .78rem;
  letter-spacing: .04em;
}

.main-nav a {
  padding: .45rem 0;
  border-bottom: 1px solid transparent;
}

.main-nav a:hover,
.main-nav a:focus-visible,
.footer-nav a:hover,
.footer-nav a:focus-visible {
  color: var(--red);
  border-color: currentColor;
}

.hero {
  padding: 4.7rem 0 5.4rem;
  scroll-margin-top: 7rem;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(380px, .95fr);
  gap: clamp(3rem, 7vw, 7rem);
  align-items: center;
}

.eyebrow {
  margin: 0 0 .8rem;
  color: var(--red);
  font-family: var(--mono);
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
}

.cut-ref {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: .75rem;
  align-items: center;
  max-width: 570px;
  margin-bottom: 1rem;
  color: var(--grey);
  font-family: var(--mono);
  font-size: .64rem;
  letter-spacing: .08em;
}

.cut-rule {
  height: 1px;
  background: var(--line);
}

h1,
h2,
h3 { margin-top: 0; }

h1,
h2 {
  font-weight: 900;
  letter-spacing: -.06em;
  text-transform: uppercase;
}

h1 {
  max-width: 820px;
  margin-bottom: 1.3rem;
  font-size: clamp(3.5rem, 7.4vw, 7.1rem);
  line-height: .9;
}

h2 {
  margin-bottom: 1rem;
  font-size: clamp(2.3rem, 4.9vw, 4.2rem);
  line-height: .95;
}

h3 {
  margin-bottom: .45rem;
  font-size: 1.35rem;
}

p {
  margin-top: 0;
  color: #5d6163;
}

.hero-text {
  max-width: 650px;
  margin-bottom: 1.8rem;
  font-size: 1.04rem;
}

.cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: .82rem 1.3rem;
  border: 1px solid var(--black);
  background: var(--black);
  color: var(--paper);
  text-decoration: none;
  font-size: .78rem;
  font-weight: 800;
  letter-spacing: .09em;
  text-transform: uppercase;
  transition: transform .2s ease, box-shadow .2s ease;
}

.cta:hover,
.cta:focus-visible {
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(21,22,23,.18);
}

.hero-note {
  display: grid;
  grid-template-columns: 46px 1fr;
  gap: .9rem;
  max-width: 560px;
  margin-top: 2rem;
}

.crop-glyph {
  position: relative;
  width: 42px;
  height: 42px;
}

.crop-glyph::before,
.crop-glyph::after {
  content: "";
  position: absolute;
  width: 18px;
  height: 18px;
  border-color: var(--red);
}

.crop-glyph::before {
  left: 0;
  top: 0;
  border-left: 3px solid var(--red);
  border-top: 3px solid var(--red);
}

.crop-glyph::after {
  right: 0;
  bottom: 0;
  border-right: 3px solid var(--red);
  border-bottom: 3px solid var(--red);
}

.hero-note p {
  margin-bottom: 0;
  font-family: var(--mono);
  font-size: .75rem;
}

.hero-visual {
  position: relative;
  min-height: 530px;
  overflow: hidden;
  border: 1px solid var(--line);
  background:
    linear-gradient(145deg, rgba(29,47,69,.05), transparent 60%),
    var(--paper);
  box-shadow: var(--shadow);
}

.poster-grid {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(rgba(21,22,23,.04) 1px, transparent 1px) 0 0 / 48px 48px,
    linear-gradient(90deg, rgba(21,22,23,.04) 1px, transparent 1px) 0 0 / 48px 48px;
}

.poster-block {
  position: absolute;
  left: 34px;
  top: 34px;
  width: 280px;
  padding: 1rem;
  border: 4px solid var(--black);
  background: var(--yellow);
  transform: rotate(-2deg);
}

.poster-block span,
.poster-block strong,
.poster-block small { display: block; }

.poster-kicker {
  font-family: var(--mono);
  font-size: .58rem;
  letter-spacing: .1em;
}

.poster-block strong {
  margin: .2rem 0;
  font-size: 1.55rem;
  line-height: .95;
  letter-spacing: -.04em;
}

.poster-block small {
  font-family: var(--mono);
  font-size: .58rem;
}

.sticker {
  position: absolute;
  display: grid;
  place-items: center;
  border-radius: 999px;
  font-weight: 900;
  letter-spacing: .04em;
  transform: rotate(-8deg);
}

.sticker-red {
  right: 36px;
  top: 54px;
  width: 112px;
  height: 58px;
  background: var(--red);
  color: var(--paper);
}

.sticker-yellow {
  right: 42px;
  bottom: 48px;
  width: 90px;
  height: 90px;
  background: var(--yellow);
  color: var(--black);
  border: 3px solid var(--black);
  font-size: 1.5rem;
}

.crop {
  position: absolute;
  width: 42px;
  height: 42px;
}

.crop::before,
.crop::after {
  content: "";
  position: absolute;
  background: var(--black);
}

.crop::before { width: 24px; height: 3px; }
.crop::after { width: 3px; height: 24px; }

.crop-tl { left: 24px; top: 24px; }
.crop-tr { right: 24px; top: 24px; transform: rotate(90deg); }
.crop-bl { left: 24px; bottom: 24px; transform: rotate(-90deg); }
.crop-br { right: 24px; bottom: 24px; transform: rotate(180deg); }

.diagonal {
  position: absolute;
  width: 8px;
  background: var(--red);
  transform: rotate(34deg);
}

.d1 { left: 44%; top: 170px; height: 220px; }
.d2 { left: 51%; top: 150px; height: 250px; background: var(--navy); }
.d3 { left: 58%; top: 190px; height: 180px; background: var(--yellow); }

.guide-lines {
  position: absolute;
  left: 42px;
  bottom: 54px;
  display: grid;
  gap: 10px;
}

.guide-lines i {
  display: block;
  height: 3px;
  background: var(--black);
}

.guide-lines i:nth-child(1) { width: 140px; }
.guide-lines i:nth-child(2) { width: 112px; }
.guide-lines i:nth-child(3) { width: 132px; }
.guide-lines i:nth-child(4) { width: 86px; }

.corner-ref {
  position: absolute;
  right: 24px;
  bottom: 20px;
  color: var(--grey);
  font-family: var(--mono);
  font-size: .56rem;
}

.about-section {
  background:
    linear-gradient(90deg, rgba(162,166,168,.09), transparent 34%),
    #fbfaf6;
}

.about-grid {
  display: grid;
  grid-template-columns: 70px .9fr 1.1fr;
  gap: clamp(1.8rem, 4vw, 4rem);
  align-items: start;
}

.section-index {
  color: var(--grey);
  font-family: var(--mono);
  font-size: .72rem;
  letter-spacing: .12em;
}

.about-copy {
  padding-top: 1.35rem;
  border-top: 1px solid var(--line);
}

.about-copy p { font-size: 1.02rem; }

.section-heading {
  display: grid;
  grid-template-columns: 70px 1fr;
  gap: clamp(1.8rem, 4vw, 4rem);
  margin-bottom: 2rem;
}

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

.poster-card {
  position: relative;
  min-height: 320px;
  overflow: hidden;
  border: 2px solid var(--black);
  background: var(--paper);
}

.card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: .85rem 1rem;
  border-bottom: 1px solid var(--line);
  color: var(--grey);
  font-family: var(--mono);
  font-size: .62rem;
}

.card-sticker {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  font-weight: 900;
}

.red-sticker { background: var(--red); color: #fff; }
.yellow-sticker { background: var(--yellow); color: var(--black); }
.navy-sticker { background: var(--navy); color: #fff; }

.card-band {
  min-height: 70px;
  display: flex;
  align-items: center;
  padding: 0 1rem;
  color: var(--paper);
  font-size: 1.3rem;
  font-weight: 900;
  letter-spacing: .08em;
}

.band-black { background: var(--black); }
.band-red { background: var(--red); }
.band-navy { background: var(--navy); }

.card-copy {
  padding: 1.5rem 1rem 3.2rem;
}

.card-copy h3 {
  font-size: 1.4rem;
  font-weight: 900;
  text-transform: uppercase;
}

.card-copy p { margin-bottom: 0; }

.card-crop {
  position: absolute;
  right: 16px;
  bottom: 18px;
  width: 34px;
  height: 34px;
  border-right: 3px solid var(--red);
  border-bottom: 3px solid var(--red);
}

.card-foot {
  position: absolute;
  left: 1rem;
  bottom: 1rem;
  color: var(--grey);
  font-family: var(--mono);
  font-size: .58rem;
}

.style-section {
  padding-top: 4rem;
  padding-bottom: 4rem;
}

.style-panel {
  position: relative;
  overflow: hidden;
  padding: clamp(2rem, 5vw, 4rem);
  border: 2px solid var(--black);
  background:
    linear-gradient(rgba(21,22,23,.035) 1px, transparent 1px) 0 0 / 34px 34px,
    linear-gradient(90deg, rgba(21,22,23,.035) 1px, transparent 1px) 0 0 / 34px 34px,
    #eeece6;
}

.style-heading {
  display: grid;
  grid-template-columns: 70px 1fr;
  gap: clamp(1.8rem, 4vw, 4rem);
  max-width: 860px;
  margin-bottom: 3rem;
}

.style-heading p:last-child { max-width: 700px; }

.sequence-grid {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
}

.sequence-step {
  position: relative;
  min-height: 180px;
  padding: 1.2rem;
  border: 2px solid var(--black);
  background: rgba(251,249,243,.88);
}

.sequence-no {
  display: block;
  margin-bottom: 1rem;
  color: var(--red);
  font-family: var(--mono);
  font-size: .64rem;
}

.sequence-mark {
  display: block;
  width: 48px;
  height: 24px;
  margin-bottom: 1rem;
  transform: skewX(-24deg);
}

.mark-red { background: var(--red); }
.mark-yellow { background: var(--yellow); border: 2px solid var(--black); }
.mark-navy { background: var(--navy); }
.mark-grey { background: var(--grey); }

.sequence-step strong {
  display: block;
  font-size: 1.12rem;
  letter-spacing: .03em;
  text-transform: uppercase;
}

.sequence-line {
  display: block;
  width: 56px;
  height: 3px;
  margin-top: .8rem;
  background: var(--black);
  transform: rotate(-9deg);
}

.sequence-step small {
  position: absolute;
  left: 1.2rem;
  bottom: 1rem;
  color: var(--grey);
  font-family: var(--mono);
  font-size: .58rem;
}

.style-slash {
  position: absolute;
  right: 0;
  height: 8px;
  opacity: .45;
  transform: skewX(-24deg);
}

.slash-one {
  top: 82px;
  width: 34%;
  background: var(--red);
}

.slash-two {
  bottom: 76px;
  width: 48%;
  background: var(--yellow);
}

.style-label {
  position: absolute;
  right: 5%;
  top: 10%;
  padding: .5rem .7rem;
  background: var(--navy);
  color: #fff;
  font-family: var(--mono);
  font-size: .62rem;
  transform: rotate(4deg);
}

.closing-section { background: #efede7; }

.closing-grid {
  display: grid;
  grid-template-columns: 1fr minmax(330px, .8fr);
  gap: clamp(3rem, 7vw, 7rem);
  align-items: center;
}

.closing-copy { max-width: 700px; }

.closing-art {
  position: relative;
  min-height: 280px;
  overflow: hidden;
  border: 2px solid var(--black);
  background: var(--paper);
}

.closing-poster {
  position: absolute;
  left: 26px;
  top: 26px;
  width: 230px;
  padding: 1rem;
  border: 4px solid var(--black);
  background: var(--yellow);
  transform: rotate(-2deg);
}

.closing-poster span,
.closing-poster strong,
.closing-poster small { display: block; }

.closing-poster span,
.closing-poster small {
  font-family: var(--mono);
  font-size: .58rem;
  letter-spacing: .08em;
}

.closing-poster span { color: var(--red); }

.closing-poster strong {
  margin: .25rem 0;
  font-size: 1.05rem;
  letter-spacing: .04em;
}

.closing-sticker {
  position: absolute;
  right: 34px;
  top: 34px;
  display: grid;
  place-items: center;
  width: 92px;
  height: 92px;
  border-radius: 50%;
  background: var(--red);
  color: #fff;
  font-size: 1.05rem;
  font-weight: 900;
  transform: rotate(8deg);
}

.closing-slash {
  position: absolute;
  right: 50px;
  width: 8px;
  background: var(--navy);
  transform: rotate(36deg);
}

.cs-a {
  bottom: 26px;
  height: 118px;
}

.cs-b {
  right: 88px;
  bottom: 44px;
  height: 92px;
  background: var(--red);
}

.closing-tl { left: 18px; top: 18px; }
.closing-br { right: 18px; bottom: 18px; transform: rotate(180deg); }

.legal-section { background: #e3e0d9; }

.legal-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.legal-card {
  padding: 2rem;
  border: 1px solid var(--line);
  background: rgba(251,249,243,.72);
}

.legal-card h2 {
  font-size: clamp(2rem, 3.4vw, 3rem);
  text-transform: none;
  letter-spacing: -.03em;
}

.legal-card p:last-child { margin-bottom: 0; }

.site-footer {
  padding: 2rem 0;
  border-top: 1px solid var(--line);
  background: #e3e0d9;
}

.footer-grid {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 2rem;
}

.footer-brand {
  display: grid;
  gap: .15rem;
}

.footer-brand strong {
  font-size: 1rem;
  font-weight: 900;
  letter-spacing: .04em;
  text-transform: uppercase;
}

.footer-brand span {
  color: var(--red);
  font-family: var(--mono);
  font-size: .6rem;
}

@media (max-width: 980px) {
  .header-inner {
    min-height: auto;
    padding: 1rem 0;
    align-items: flex-start;
    flex-direction: column;
    gap: .7rem;
  }

  .hero-grid,
  .closing-grid { grid-template-columns: 1fr; }

  .hero-visual { min-height: 450px; }

  .about-grid { grid-template-columns: 56px 1fr; }
  .about-copy { grid-column: 2; }

  .service-grid { grid-template-columns: 1fr; }
  .poster-card { min-height: 250px; }

  .sequence-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }

  .legal-grid { grid-template-columns: 1fr; }
}

@media (max-width: 700px) {
  .shell { width: min(100% - 28px, 1160px); }
  .section { padding: 4rem 0; }

  h1 { font-size: clamp(3.1rem, 16vw, 5rem); }
  h2 { font-size: clamp(2.1rem, 10vw, 3.1rem); }

  .hero { padding-top: 3rem; }

  .cut-ref { grid-template-columns: 1fr; }
  .cut-rule { display: none; }

  .hero-visual { min-height: 390px; }

  .poster-block {
    left: 20px;
    top: 20px;
    width: 220px;
  }

  .sticker-red {
    right: 22px;
    top: 40px;
    width: 88px;
    height: 48px;
  }

  .sticker-yellow {
    right: 24px;
    bottom: 34px;
    width: 72px;
    height: 72px;
    font-size: 1.2rem;
  }

  .about-grid,
  .section-heading,
  .style-heading {
    grid-template-columns: 1fr;
    gap: .8rem;
  }

  .about-copy { grid-column: auto; }

  .sequence-grid { grid-template-columns: 1fr; }
  .sequence-step { min-height: 145px; }

  .style-label {
    right: -6px;
    top: 16px;
    transform: rotate(4deg) scale(.8);
  }

  .footer-grid {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 480px) {
  .main-nav {
    display: grid;
    grid-template-columns: repeat(3, auto);
    justify-content: start;
    gap: .55rem 1rem;
  }

  .main-nav a { font-size: .72rem; }

  .hero-visual { min-height: 350px; }

  .poster-block {
    max-width: 66%;
    padding: .8rem;
  }

  .d2,
  .d3 { opacity: .5; }

  .closing-poster {
    left: 18px;
    top: 18px;
    max-width: 66%;
  }

  .closing-sticker {
    right: 20px;
    width: 74px;
    height: 74px;
  }

  .legal-card,
  .style-panel {
    padding: 1.35rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }

  *,
  *::before,
  *::after {
    transition: none !important;
  }
}
