:root {
  color-scheme: light;
  --ink: #151a1d;
  --night: #22272a;
  --graphite: #363c40;
  --muted: #667178;
  --paper: #f4f1ea;
  --panel: #ffffff;
  --ice: #e8f2f3;
  --line: #cbd3d3;
  --teal: #3c9999;
  --blue: #2f6d85;
  --amber: #d88d36;
  --rust: #a9593d;
  --bone: #fbf7ee;
  --shadow: 0 22px 60px rgba(21, 26, 29, 0.16);
  --facet: polygon(0 0, calc(100% - 24px) 0, 100% 24px, 100% 100%, 24px 100%, 0 calc(100% - 24px));
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background:
    linear-gradient(115deg, rgba(60, 153, 153, 0.08) 0 18%, transparent 18% 100%),
    linear-gradient(295deg, transparent 0 70%, rgba(216, 141, 54, 0.11) 70% 100%),
    var(--paper);
  color: var(--ink);
  line-height: 1.5;
}

.top-strip {
  display: grid;
  min-height: 36px;
  place-items: center;
  padding: 7px 16px;
  background:
    linear-gradient(rgba(8, 14, 16, 0.24), rgba(8, 14, 16, 0.24)),
    linear-gradient(90deg, #e74767 0%, #f7943d 16%, #f2d24b 32%, #38b96f 48%, #2f91d1 64%, #7a55c7 82%, #e74767 100%);
  color: var(--bone);
  font-size: 0.8rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-align: center;
  text-transform: uppercase;
}

img {
  display: block;
  width: 100%;
  height: auto;
}

a {
  color: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 12px 18px;
  min-height: 72px;
  padding: 14px clamp(18px, 4vw, 54px);
  background: rgba(244, 241, 234, 0.94);
  border-bottom: 1px solid rgba(203, 211, 211, 0.9);
  backdrop-filter: blur(14px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-weight: 900;
  text-decoration: none;
}

.corner-link {
  display: inline-grid;
  width: 54px;
  height: 46px;
  place-items: center;
  margin-right: -2px;
}

.corner-link img {
  display: block;
  width: 52px;
  height: auto;
  transition: transform 0.22s ease;
}

.corner-link:hover img {
  transform: translateY(-2px) rotate(-3deg);
}

.brand-text {
  display: grid;
  gap: 2px;
}

.brand-subtitle {
  font-size: 0.78rem;
  font-weight: 800;
  text-align: center;
}

.brand-mark {
  position: relative;
  display: grid;
  width: 50px;
  height: 46px;
  place-items: center;
  clip-path: polygon(50% 0, 100% 36%, 84% 100%, 16% 100%, 0 36%);
  background:
    linear-gradient(145deg, transparent 0 47%, rgba(255, 255, 255, 0.36) 47% 53%, transparent 53% 100%),
    linear-gradient(35deg, transparent 0 32%, rgba(10, 14, 16, 0.22) 32% 38%, transparent 38% 100%),
    conic-gradient(from 215deg at 50% 48%, #e74767, #f7943d, #f2d24b, #38b96f, #2f91d1, #7a55c7, #e74767);
  color: var(--bone);
  font-size: 0.78rem;
  letter-spacing: 0.08em;
}

.brand-mark::before,
.brand-mark::after {
  content: "";
  position: absolute;
  background: rgba(8, 14, 16, 0.62);
}

.brand-mark::before {
  inset: 21px 13px 0;
  clip-path: polygon(0 0, 100% 0, 100% 100%, 64% 100%, 64% 52%, 36% 52%, 36% 100%, 0 100%);
}

.brand-mark::after {
  inset: 4px 8px auto;
  height: 18px;
  clip-path: polygon(50% 0, 100% 100%, 0 100%);
}

.site-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  margin-left: auto;
  gap: 8px 18px;
  color: var(--muted);
  font-size: 0.94rem;
  font-weight: 750;
}

.site-nav a {
  text-decoration: none;
}

.site-nav a:hover {
  color: var(--ink);
}

.hero {
  position: relative;
  min-height: calc(100vh - 108px);
  display: grid;
  align-items: end;
  overflow: hidden;
  isolation: isolate;
  background:
    linear-gradient(90deg, #050a0c 0%, #071113 38%, #102225 64%, #0c1314 100%),
    var(--night);
}

.hero::before,
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
}

.hero::before {
  background:
    linear-gradient(90deg, rgba(13, 17, 19, 0.94), rgba(13, 17, 19, 0.72) 42%, rgba(13, 17, 19, 0.08) 72%),
    linear-gradient(150deg, rgba(60, 153, 153, 0.36) 0 22%, transparent 22% 55%, rgba(216, 141, 54, 0.22) 55% 100%);
}

.hero::after {
  inset: auto clamp(20px, 5vw, 72px) 34px auto;
  width: min(330px, 42vw);
  height: min(330px, 42vw);
  border: 1px solid rgba(232, 242, 243, 0.2);
  clip-path: polygon(50% 0, 100% 30%, 84% 100%, 16% 100%, 0 30%);
}

.hero > img {
  position: absolute;
  inset: 0;
  z-index: -2;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: right center;
}

.hero-copy {
  width: min(520px, 100%);
  padding: 46px clamp(20px, 5vw, 72px);
  color: var(--bone);
}

.hero-copy::before {
  content: "PUP KENNEL";
  display: inline-grid;
  place-items: center;
  min-height: 34px;
  margin-bottom: 16px;
  padding: 0 13px;
  border: 1px solid rgba(232, 242, 243, 0.58);
  clip-path: var(--facet);
  color: var(--ice);
  font-size: 0.76rem;
  font-weight: 900;
  letter-spacing: 0.14em;
}

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

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

.hero h1 {
  max-width: 500px;
  margin: 0;
  font-size: 3.45rem;
  line-height: 1;
  letter-spacing: 0;
}

.hero-copy > p:not(.eyebrow) {
  max-width: 500px;
  margin: 20px 0 0;
  font-size: 0.98rem;
  color: rgba(251, 247, 238, 0.84);
}

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

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 18px;
  border: 1px solid transparent;
  clip-path: var(--facet);
  font: inherit;
  font-weight: 900;
  text-decoration: none;
  cursor: pointer;
}

.button.primary {
  background: linear-gradient(135deg, var(--teal), var(--blue));
  color: var(--bone);
}

.button.secondary {
  border-color: rgba(251, 247, 238, 0.58);
  color: var(--bone);
}

.page-main {
  min-height: calc(100vh - 108px);
  padding: clamp(48px, 7vw, 92px) clamp(20px, 5vw, 72px);
  background:
    linear-gradient(120deg, rgba(21, 26, 29, 0.04) 0 36%, rgba(60, 153, 153, 0.1) 36% 68%, rgba(216, 141, 54, 0.12) 68% 100%),
    var(--paper);
}

.mini-hero {
  display: grid;
  gap: 18px;
  max-width: 760px;
}

.mini-hero h1 {
  margin: 0;
  max-width: 720px;
  font-size: 3.7rem;
  line-height: 1;
  letter-spacing: 0;
}

.mini-hero p:not(.eyebrow) {
  margin: 0;
  max-width: 660px;
  color: var(--muted);
  font-size: 1.12rem;
}

.mini-hero .button {
  width: fit-content;
  margin-top: 8px;
}

.centered-page {
  min-height: 48vh;
  margin: 0 auto;
  align-content: center;
  justify-items: center;
  text-align: center;
}

.home-sections {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  padding: clamp(34px, 5vw, 64px) clamp(20px, 5vw, 72px);
  background: var(--paper);
}

.home-sections article {
  padding: 20px;
  background: var(--panel);
  border: 1px solid var(--line);
  clip-path: var(--facet);
  box-shadow: 6px 6px 0 rgba(60, 153, 153, 0.18);
}

.home-sections h2 {
  margin: 0 0 10px;
  font-size: 1.18rem;
}

.home-sections p {
  margin: 0;
  color: var(--muted);
}

.page-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-top: 34px;
  max-width: 980px;
}

.page-card {
  padding: 20px;
  background: var(--panel);
  border: 1px solid var(--line);
  clip-path: var(--facet);
  box-shadow: 6px 6px 0 rgba(60, 153, 153, 0.22);
}

.page-card:nth-child(2) {
  box-shadow-color: rgba(216, 141, 54, 0.22);
}

.page-card:nth-child(3) {
  box-shadow-color: rgba(47, 109, 133, 0.2);
}

.page-card h2 {
  margin: 0 0 8px;
  font-size: 1.25rem;
  line-height: 1.1;
}

.page-card p {
  margin: 0;
  color: var(--muted);
}

.card-link {
  color: inherit;
  display: block;
  text-decoration: none;
}

.card-link:hover,
.card-link:focus-visible {
  transform: translateY(-2px);
}

.letter {
  display: grid;
  gap: 18px;
  max-width: 820px;
  margin-top: 28px;
  padding: clamp(22px, 4vw, 34px);
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid var(--line);
  clip-path: var(--facet);
}

.letter p {
  margin: 0;
  color: var(--ink);
  font-size: 1.08rem;
}

.letter-signature {
  margin-top: 8px;
  color: var(--teal);
  font-weight: 900;
}

.section-grid,
.full-band,
.form-section,
.intro-tiles,
.spotlight,
.process-section {
  padding: clamp(54px, 8vw, 96px) clamp(20px, 5vw, 72px);
}

.intro-tiles {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
  background: var(--bone);
}

.intro-tiles article {
  display: grid;
  align-content: start;
  gap: 14px;
  padding: 14px 14px 18px;
  background: var(--panel);
  border: 1px solid var(--line);
  clip-path: var(--facet);
}

.intro-tiles article:nth-child(2) {
  background: var(--ice);
}

.intro-tiles article:nth-child(3) {
  background: #f2eadf;
}

.intro-tiles img {
  aspect-ratio: 1 / 1;
  object-fit: cover;
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 18px), calc(100% - 18px) 100%, 0 100%);
  filter: saturate(0.82) contrast(1.08);
}

.intro-tiles h2 {
  margin: 0;
  font-size: 1.72rem;
  line-height: 1.08;
}

.intro-tiles p {
  margin: 0;
  color: var(--muted);
}

.spotlight {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  background:
    linear-gradient(132deg, var(--night) 0 46%, var(--teal) 46% 70%, var(--amber) 70% 100%);
  color: var(--bone);
}

.spotlight h2 {
  margin: 0;
  font-size: 4.35rem;
  line-height: 0.96;
}

.spotlight p:not(.eyebrow) {
  max-width: 660px;
  margin: 12px 0 0;
  font-size: 1.1rem;
  color: rgba(251, 247, 238, 0.82);
}

.spotlight .eyebrow {
  color: var(--ice);
}

.spotlight .button.primary {
  background: var(--bone);
  color: var(--night);
}

.process-section {
  background:
    linear-gradient(45deg, transparent 0 64%, rgba(60, 153, 153, 0.1) 64% 100%),
    #ffffff;
}

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

.process-grid article {
  min-height: 230px;
  padding: 22px;
  border: 1px solid var(--graphite);
  clip-path: var(--facet);
  background: var(--bone);
  box-shadow: 8px 8px 0 var(--teal);
}

.process-grid article:nth-child(2) {
  box-shadow: 8px 8px 0 var(--amber);
}

.process-grid article:nth-child(3) {
  box-shadow: 8px 8px 0 var(--blue);
}

.process-grid article:nth-child(4) {
  box-shadow: 8px 8px 0 var(--rust);
}

.process-grid span {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  margin-bottom: 18px;
  clip-path: polygon(50% 0, 100% 30%, 84% 100%, 16% 100%, 0 30%);
  background: var(--ink);
  color: var(--bone);
  font-weight: 950;
}

.process-grid p {
  margin: 0;
  color: var(--muted);
}

.section-grid {
  display: grid;
  grid-template-columns: minmax(220px, 0.85fr) minmax(0, 1.35fr);
  gap: clamp(28px, 5vw, 72px);
  align-items: start;
}

.section-grid h2,
.section-heading h2,
.form-intro h2 {
  margin: 0;
  max-width: 780px;
  font-size: 3.7rem;
  line-height: 1;
  letter-spacing: 0;
}

.copy-stack {
  display: grid;
  gap: 18px;
  font-size: 1.12rem;
  color: var(--muted);
}

.copy-stack p,
.section-heading p,
.form-intro p,
.site-footer p {
  margin: 0;
}

.full-band {
  background:
    linear-gradient(120deg, rgba(21, 26, 29, 0.04) 0 35%, rgba(60, 153, 153, 0.11) 35% 62%, rgba(216, 141, 54, 0.11) 62% 100%),
    var(--ice);
}

.section-heading {
  display: grid;
  gap: 12px;
  max-width: 820px;
  margin-bottom: 32px;
}

.section-heading p:not(.eyebrow),
.muted {
  color: var(--muted);
}

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

.gallery-grid {
  max-width: 1180px;
  margin-top: 34px;
}

.item-card,
.story-card,
.action-list article,
.rules-grid article {
  background: var(--panel);
  border: 1px solid var(--line);
  overflow: hidden;
  box-shadow: 0 1px 0 rgba(31, 31, 31, 0.04);
}

.item-card,
.story-card,
.action-list article {
  clip-path: var(--facet);
}

.item-card {
  border-top: 8px solid var(--teal);
}

.item-card h3::before,
.story-card h3::before,
.rules-grid h3::before,
.action-list h3::before {
  content: "";
  display: inline-block;
  width: 0.72em;
  height: 0.72em;
  margin-right: 8px;
  clip-path: polygon(50% 0, 100% 30%, 84% 100%, 16% 100%, 0 30%);
  background: linear-gradient(135deg, var(--teal), var(--amber));
  vertical-align: -0.05em;
}

.item-card img,
.item-card video {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  filter: saturate(0.78) contrast(1.1);
}

.gallery-grid .item-card img,
.gallery-grid .item-card video {
  background: #101516;
  object-fit: contain;
  transition: filter 0.3s ease;
}

.gallery-grid .item-card:hover img,
.gallery-grid .item-card:focus-within img,
.gallery-grid .item-card:hover video,
.gallery-grid .item-card:focus-within video {
  filter: saturate(1) contrast(1.08);
}

.item-card div,
.story-card div,
.action-list article,
.rules-grid article {
  padding: 18px;
}

h3 {
  margin: 0 0 8px;
  font-size: 1.1rem;
}

.item-card p,
.story-card p,
.rules-grid p,
.action-list p {
  margin: 0;
  color: var(--muted);
}

.story-list {
  display: grid;
  gap: 16px;
}

.story-card {
  display: grid;
  grid-template-columns: 180px minmax(0, 1fr);
  align-items: stretch;
}

.story-card img {
  height: 100%;
  min-height: 180px;
  object-fit: cover;
  filter: saturate(0.72) contrast(1.1);
}

.rules-band {
  background:
    linear-gradient(132deg, rgba(60, 153, 153, 0.16) 0 30%, transparent 30% 62%, rgba(216, 141, 54, 0.16) 62% 100%),
    var(--night);
  color: var(--bone);
}

.rules-band .eyebrow {
  color: var(--amber);
}

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

.rules-grid article {
  background: rgba(251, 247, 238, 0.08);
  border-color: rgba(251, 247, 238, 0.18);
  clip-path: var(--facet);
}

.rules-grid p {
  color: rgba(251, 247, 238, 0.76);
}

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

.action-list img {
  margin: -18px -18px 18px;
  width: calc(100% + 36px);
  aspect-ratio: 16 / 9;
  object-fit: cover;
  filter: saturate(0.78) contrast(1.06);
}

.form-section {
  display: grid;
  grid-template-columns: minmax(240px, 0.8fr) minmax(0, 1.2fr);
  gap: clamp(28px, 5vw, 72px);
  background:
    linear-gradient(126deg, rgba(216, 141, 54, 0.12) 0 32%, transparent 32% 68%, rgba(60, 153, 153, 0.14) 68% 100%),
    #f5efe4;
}

.form-intro {
  display: grid;
  align-content: start;
  gap: 14px;
}

.form-intro p:not(.eyebrow) {
  color: var(--muted);
}

code {
  padding: 2px 5px;
  background: #e3dccc;
}

.support-form {
  display: grid;
  gap: 16px;
  padding: clamp(20px, 4vw, 34px);
  background: var(--panel);
  border: 1px solid var(--line);
  clip-path: var(--facet);
  box-shadow: var(--shadow);
}

.page-form {
  max-width: 820px;
  margin-top: 30px;
}

.form-two-column {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.field-note {
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 650;
}

.trap-field {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

label {
  display: grid;
  gap: 8px;
  color: var(--ink);
  font-weight: 850;
}

input,
select,
textarea {
  width: 100%;
  min-height: 46px;
  padding: 11px 12px;
  border: 1px solid #b8c0c0;
  background: #fff;
  color: var(--ink);
  font: inherit;
}

textarea {
  resize: vertical;
}

input:focus,
select:focus,
textarea:focus {
  outline: 3px solid rgba(60, 153, 153, 0.24);
  border-color: var(--teal);
}

.checkbox-row {
  grid-template-columns: 22px minmax(0, 1fr);
  align-items: start;
  font-weight: 650;
  color: var(--muted);
}

.checkbox-row input {
  width: 18px;
  min-height: 18px;
  margin-top: 3px;
}

.support-form .button {
  width: fit-content;
}

.form-status {
  min-height: 24px;
  margin: 0;
  color: var(--teal);
  font-weight: 900;
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding: 24px clamp(20px, 5vw, 72px);
  background: var(--ink);
  color: rgba(251, 247, 238, 0.78);
}

.site-footer p:first-child {
  color: var(--bone);
  font-weight: 950;
}

@media (max-width: 900px) {
  .hero-copy {
    width: min(500px, 100%);
  }

  .hero h1 {
    font-size: 3.1rem;
  }

  .spotlight h2,
  .section-grid h2,
  .section-heading h2,
  .form-intro h2 {
    font-size: 3rem;
  }

  .site-header,
  .site-footer {
    align-items: flex-start;
    flex-direction: column;
  }

  .site-nav {
    justify-content: flex-start;
  }

  .section-grid,
  .form-section {
    grid-template-columns: 1fr;
  }

  .intro-tiles,
  .home-sections,
  .hood-grid,
  .process-grid,
  .rules-grid,
  .action-list {
    grid-template-columns: 1fr 1fr;
  }

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

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

  .form-two-column {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .top-strip {
    min-height: 34px;
    padding: 6px 12px;
    font-size: 0.68rem;
    letter-spacing: 0.03em;
  }

  .site-header {
    gap: 12px;
    min-height: 0;
    padding: 12px 16px;
  }

  .brand {
    gap: 10px;
    font-size: 0.95rem;
  }

  .brand-mark {
    width: 42px;
    height: 40px;
    flex: 0 0 auto;
  }

  .site-nav {
    width: 100%;
    flex-wrap: nowrap;
    gap: 14px;
    overflow-x: auto;
    padding-bottom: 4px;
    font-size: 0.86rem;
    scrollbar-width: none;
  }

  .site-nav::-webkit-scrollbar {
    display: none;
  }

  .site-nav a {
    flex: 0 0 auto;
    white-space: nowrap;
  }

  .hero {
    min-height: 0;
    display: block;
    background: #050a0c;
  }

  .hero::before {
    display: none;
  }

  .hero::after {
    display: none;
  }

  .hero > img {
    position: relative;
    inset: auto;
    width: 100%;
    height: auto;
    aspect-ratio: 16 / 9;
    object-fit: contain;
    object-position: center;
    background: #050a0c;
  }

  .hero-copy {
    width: 100%;
    padding: 28px 20px 34px;
    background:
      linear-gradient(135deg, rgba(60, 153, 153, 0.12), transparent 48%),
      #050a0c;
  }

  .hero-copy::before {
    min-height: 30px;
    margin-bottom: 12px;
    font-size: 0.68rem;
  }

  .hero h1 {
    max-width: 360px;
    font-size: 2.4rem;
    line-height: 1.02;
  }

  .mini-hero h1 {
    font-size: 2.45rem;
  }

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

  .hero-copy > p:not(.eyebrow) {
    max-width: 360px;
    margin-top: 16px;
    font-size: 0.98rem;
  }

  .hero-actions {
    gap: 10px;
    margin-top: 24px;
  }

  .button {
    min-height: 46px;
    padding: 0 14px;
    font-size: 0.92rem;
  }

  .page-main {
    min-height: auto;
    padding: 36px 18px 52px;
  }

  .mini-hero {
    gap: 14px;
  }

  .mini-hero p:not(.eyebrow),
  .letter p {
    font-size: 1rem;
  }

  .letter {
    padding: 22px 18px;
  }

  .intro-tiles h2 {
    font-size: 1.5rem;
  }

  .spotlight h2,
  .section-grid h2,
  .section-heading h2,
  .form-intro h2 {
    font-size: 2.4rem;
  }

  .hood-grid,
  .home-sections,
  .intro-tiles,
  .process-grid,
  .rules-grid,
  .action-list,
  .story-card {
    grid-template-columns: 1fr;
  }

  .story-card img {
    min-height: 220px;
  }

  .support-form .button {
    width: 100%;
  }
}
