:root {
  --paper: #f3efe1;
  --paper-dark: #e9e2cd;
  --ink: #16151b;
  --ink-soft: #5a5867;
  --ink-faint: #8b8896;
  --accent: #e0402a;
  --accent-dark: #b22f1c;
  --line: #d9d0b8;
  --panel: #fffdf8;
  --accent-2: #d6a93c;
  --accent-3: #2e6e62;

  --font-display: "Archivo Black", "Arial Black", sans-serif;
  --font-body: "Work Sans", system-ui, sans-serif;
  --font-tag: "Space Mono", ui-monospace, monospace;
}

* {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
}
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  line-height: 1.55;
}
img {
  max-width: 100%;
  display: block;
}
a {
  color: inherit;
  text-decoration: none;
}
ul {
  margin: 0;
  padding: 0;
  list-style: none;
}
section {
  position: relative;
}

@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
  html {
    scroll-behavior: auto;
  }
}

.wrap {
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 28px;
}

/* halftone texture, used as a background accent on a few sections */
.halftone {
  background-image: radial-gradient(var(--ink) 1px, transparent 1.4px);
  background-size: 9px 9px;
  opacity: 0.07;
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.tag {
  font-family: var(--font-tag);
  font-size: 11.5px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
}

.reg-mark {
  /* print registration crosshair, decorative */
  width: 16px;
  height: 16px;
  display: inline-block;
  position: relative;
}
.reg-mark::before,
.reg-mark::after {
  content: "";
  position: absolute;
  background: var(--ink-faint);
}
.reg-mark::before {
  left: 50%;
  top: 0;
  bottom: 0;
  width: 1px;
  transform: translateX(-50%);
}
.reg-mark::after {
  top: 50%;
  left: 0;
  right: 0;
  height: 1px;
  transform: translateY(-50%);
}

/* ---------- buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-tag);
  font-size: 13px;
  letter-spacing: 0.04em;
  padding: 13px 24px;
  border-radius: 3px;
  border: 2px solid var(--ink);
  cursor: pointer;
  transition:
    transform 0.12s ease,
    box-shadow 0.12s ease,
    background 0.15s ease,
    color 0.15s ease;
}
.btn-primary {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--paper);
}
.btn-primary:hover {
  background: var(--accent-dark);
  border-color: var(--accent-dark);
}
.btn-outline {
  background: transparent;
  color: var(--ink);
}
.btn-outline:hover {
  background: var(--ink);
  color: var(--paper);
}
.btn:active {
  transform: translateY(2px) scale(0.98);
}

/* ---------- nav ---------- */
.site-nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--paper);
  border-bottom: 2px solid var(--ink);
}
.site-nav .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 76px;
}
.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-size: 19px;
  letter-spacing: 0.01em;
}
.logo .mark {
  width: 34px;
  height: 34px;
  flex-shrink: 0;
}
.logo .accent-dot {
  color: var(--accent);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 34px;
}
.nav-links a {
  font-family: var(--font-tag);
  font-size: 12.5px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  position: relative;
  padding-bottom: 4px;
}
.nav-links a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0;
  height: 2px;
  background: var(--accent);
  transition: width 0.2s ease;
}
.nav-links a:hover::after,
.nav-links a.active::after {
  width: 100%;
}
.nav-links a.active {
  color: var(--accent);
}

.nav-cta {
  display: flex;
  align-items: center;
  gap: 18px;
}
.nav-toggle {
  display: none;
  width: 38px;
  height: 38px;
  border: 2px solid var(--ink);
  border-radius: 3px;
  background: none;
  cursor: pointer;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
}
.nav-toggle span {
  width: 18px;
  height: 2px;
  background: var(--ink);
}

@media (max-width: 860px) {
  .nav-links {
    position: absolute;
    top: 76px;
    left: 0;
    right: 0;
    background: var(--paper);
    border-bottom: 2px solid var(--ink);
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.25s ease;
  }
  .nav-links.open {
    max-height: 280px;
  }
  .nav-links a {
    padding: 16px 28px;
    width: 100%;
  }
  .nav-links a::after {
    display: none;
  }
  .nav-cta .btn-text {
    display: none;
  }
  .nav-toggle {
    display: flex;
  }
}

/* ---------- hero ---------- */
.hero {
  padding: 86px 0 70px;
  overflow: hidden;
}
.hero .wrap {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 50px;
  align-items: center;
}
.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(34px, 5vw, 58px);
  line-height: 1.04;
  margin: 16px 0 22px;
}
.hero h1 .accent {
  color: var(--accent);
}
.hero p {
  font-size: 16.5px;
  color: var(--ink-soft);
  max-width: 460px;
  margin: 0 0 30px;
}
.hero-ctas {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.stamp-figure {
  position: relative;
  width: 100%;
  aspect-ratio: 1/1;
  max-width: 360px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
}
.stamp-figure .dots {
  position: absolute;
  inset: 0;
  background-image: radial-gradient(var(--ink) 2px, transparent 2.4px);
  background-size: 14px 14px;
  border-radius: 50%;
  opacity: 0.5;
  -webkit-mask-image: radial-gradient(circle, black 60%, transparent 78%);
  mask-image: radial-gradient(circle, black 60%, transparent 78%);
}
.stamp-figure .panda-big {
  width: 62%;
  color: var(--ink);
  filter: drop-shadow(0 12px 18px rgba(22, 21, 27, 0.18));
  animation: stampIn 0.7s cubic-bezier(0.2, 1.4, 0.4, 1) both;
}
.panda-big .patch {
  fill: var(--ink);
}
.panda-big .accent-fill {
  fill: var(--accent);
}

@keyframes stampIn {
  0% {
    transform: scale(1.5) rotate(-8deg);
    opacity: 0;
  }
  60% {
    transform: scale(0.94) rotate(2deg);
    opacity: 1;
  }
  100% {
    transform: scale(1) rotate(0deg);
    opacity: 1;
  }
}

/* ---------- section heads ---------- */
.section-head {
  max-width: 560px;
  margin: 0 auto 46px;
  text-align: center;
}
.section-head .tag {
  display: block;
  margin-bottom: 10px;
}
.section-head h2 {
  font-family: var(--font-display);
  font-size: clamp(26px, 3.4vw, 38px);
  margin: 0 0 12px;
  line-height: 1.15;
}
.section-head p {
  color: var(--ink-soft);
  margin: 0;
}

.section {
  padding: 86px 0;
}
.section-alt {
  background: var(--paper-dark);
}

/* ---------- service cards ---------- */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}
.service-card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 28px 24px;
  position: relative;
  opacity: 0;
  transform: translateY(18px);
  transition:
    opacity 0.5s ease,
    transform 0.5s ease,
    box-shadow 0.2s ease,
    border-color 0.2s ease;
}
.service-card.in-view {
  opacity: 1;
  transform: translateY(0);
}
.service-card:hover {
  border-color: var(--ink);
  box-shadow: 6px 6px 0 var(--ink);
  transform: translateY(-2px);
}
.service-card .reg-mark {
  position: absolute;
  top: 14px;
  right: 14px;
}
.service-card .icon {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--ink);
  color: var(--paper);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
}
.service-card .icon svg {
  width: 21px;
  height: 21px;
}
.service-card h3 {
  font-family: var(--font-display);
  font-size: 17px;
  margin: 0 0 8px;
}
.service-card p {
  font-size: 14px;
  color: var(--ink-soft);
  margin: 0 0 14px;
}
.service-card .deliverables {
  font-family: var(--font-tag);
  font-size: 11px;
  color: var(--ink-faint);
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.service-card .deliverables span {
  border: 1px solid var(--line);
  border-radius: 3px;
  padding: 3px 7px;
}
.service-card .num {
  position: absolute;
  bottom: 14px;
  right: 18px;
  font-family: var(--font-tag);
  font-size: 34px;
  color: var(--line);
  line-height: 1;
}

@media (max-width: 900px) {
  .services-grid {
    grid-template-columns: 1fr 1fr;
  }
}
@media (max-width: 600px) {
  .services-grid {
    grid-template-columns: 1fr;
  }
}

/* ---------- process strip ---------- */
.process {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  counter-reset: step;
}
.process-step {
  flex: 1;
  text-align: center;
  padding: 0 8px;
}
.process-step .step-num {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 2px solid var(--ink);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 14px;
  font-family: var(--font-tag);
  font-size: 14px;
}
.process-step h4 {
  font-family: var(--font-display);
  font-size: 14px;
  margin: 0 0 6px;
}
.process-step p {
  font-size: 13px;
  color: var(--ink-soft);
  margin: 0;
}
@media (max-width: 760px) {
  .process {
    flex-direction: column;
    gap: 30px;
  }
}

/* ---------- portfolio ---------- */
.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  margin-bottom: 40px;
}
.filter-btn {
  font-family: var(--font-tag);
  font-size: 11.5px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: 9px 16px;
  border: 1px solid var(--ink);
  border-radius: 30px;
  background: transparent;
  cursor: pointer;
  transition:
    background 0.15s ease,
    color 0.15s ease;
}
.filter-btn.active,
.filter-btn:hover {
  background: var(--ink);
  color: var(--paper);
}

.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}
.portfolio-card {
  border: 1px solid var(--line);
  border-radius: 6px;
  overflow: hidden;
  background: var(--panel);
  opacity: 0;
  transform: translateY(18px);
  transition:
    opacity 0.5s ease,
    transform 0.5s ease,
    box-shadow 0.2s ease,
    border-color 0.2s ease;
}
.portfolio-card.in-view {
  opacity: 1;
  transform: translateY(0);
}
.portfolio-card:hover {
  border-color: var(--ink);
  box-shadow: 6px 6px 0 var(--ink);
  transform: translateY(-2px);
}
.portfolio-thumb {
  aspect-ratio: 4/3;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  color: var(--paper);
  font-family: var(--font-display);
  font-size: 13px;
  text-align: center;
  padding: 16px;
}
.portfolio-thumb::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(
    rgba(255, 255, 255, 0.5) 1.5px,
    transparent 2px
  );
  background-size: 10px 10px;
  opacity: 0.25;
}
.thumb-ink {
  background: var(--ink);
}
.thumb-accent {
  background: var(--accent);
}
.thumb-mustard {
  background: var(--accent-2);
}
.thumb-teal {
  background: var(--accent-3);
}
.portfolio-info {
  padding: 16px 18px 20px;
}
.portfolio-info .tag {
  display: block;
  margin-bottom: 6px;
}
.portfolio-info h3 {
  font-family: var(--font-display);
  font-size: 15px;
  margin: 0;
}

@media (max-width: 900px) {
  .portfolio-grid {
    grid-template-columns: 1fr 1fr;
  }
}
@media (max-width: 600px) {
  .portfolio-grid {
    grid-template-columns: 1fr;
  }
}

/* ---------- testimonial / CTA band ---------- */
.cta-band {
  background: var(--ink);
  color: var(--paper);
  padding: 70px 0;
  text-align: center;
}
.cta-band h2 {
  font-family: var(--font-display);
  font-size: clamp(26px, 4vw, 40px);
  margin: 0 0 18px;
}
.cta-band p {
  color: #c8c5d0;
  max-width: 480px;
  margin: 0 auto 30px;
}
.cta-band .btn-primary {
  border-color: var(--accent);
}

/* ============================================
   CONTACT PAGE — full redesign
   ============================================ */

/* --- hero banner --- */
.contact-hero {
  position: relative;
  background: var(--ink);
  color: var(--paper);
  padding: 80px 0 72px;
  overflow: hidden;
}
.contact-hero-dot-grid {
  position: absolute;
  inset: 0;
  background-image: radial-gradient(
    rgba(255, 255, 255, 0.25) 1.2px,
    transparent 1.6px
  );
  background-size: 20px 20px;
  opacity: 0.18;
  pointer-events: none;
}
.contact-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(
    ellipse 70% 80% at 10% 50%,
    rgba(224, 64, 42, 0.22),
    transparent 65%
  );
  pointer-events: none;
}
.contact-hero .wrap {
  position: relative;
  z-index: 1;
}
.contact-hero .tag {
  color: var(--accent);
  margin-bottom: 14px;
  display: block;
}
.contact-hero h1 {
  font-family: var(--font-display);
  font-size: clamp(30px, 4.5vw, 52px);
  line-height: 1.05;
  margin: 0 0 18px;
}
.contact-hero .accent {
  color: var(--accent);
}
.contact-hero p {
  font-size: 16.5px;
  color: rgba(243, 239, 225, 0.72);
  max-width: 480px;
  margin: 0;
}

/* --- section layout --- */
.contact-section {
  padding: 70px 0 90px;
}
.contact-grid {
  display: grid;
  grid-template-columns: 380px 1fr;
  gap: 52px;
  align-items: start;
}

/* --- contact info cards (left column) --- */
.contact-info {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.contact-card {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 20px 20px;
  transition:
    border-color 0.2s ease,
    box-shadow 0.2s ease,
    transform 0.2s ease;
}
.contact-card:hover {
  border-color: var(--ink);
  box-shadow: 4px 4px 0 var(--ink);
  transform: translateY(-2px);
}
.cc-icon {
  width: 40px;
  height: 40px;
  flex-shrink: 0;
  background: var(--ink);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--paper);
}
.cc-icon svg {
  width: 18px;
  height: 18px;
}
.cc-label {
  font-family: var(--font-tag);
  font-size: 10.5px;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--ink-faint);
  display: block;
  margin-bottom: 5px;
}
.cc-value {
  display: block;
  font-size: 14px;
  color: var(--ink);
  line-height: 1.5;
  word-break: break-all;
  transition: color 0.15s ease;
}
.cc-value:hover {
  color: var(--accent);
}

.contact-hours {
  background: var(--accent);
  color: var(--paper);
  border-radius: 8px;
  padding: 20px 22px;
}
.contact-hours .cc-label {
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 6px;
}
.contact-hours p {
  font-size: 14.5px;
  margin: 0;
  line-height: 1.55;
}
.contact-hours strong {
  font-weight: 700;
}

/* --- form wrapper (right column) --- */
.form-wrapper {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 10px;
  overflow: hidden;
}
.form-header {
  background: var(--ink);
  color: var(--paper);
  padding: 24px 34px 22px;
}
.form-step-tag {
  font-family: var(--font-tag);
  font-size: 11px;
  color: var(--accent);
  letter-spacing: 0.08em;
  display: block;
  margin-bottom: 6px;
}
.form-header h2 {
  font-family: var(--font-display);
  font-size: 22px;
  margin: 0;
}
.contact-form {
  padding: 30px 34px 34px;
}

/* --- form fields --- */
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-bottom: 0;
}
.form-group {
  margin-bottom: 20px;
}
.form-group label {
  display: flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-tag);
  font-size: 10.5px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--ink-soft);
  margin-bottom: 8px;
}
.optional {
  font-size: 10px;
  color: var(--ink-faint);
  text-transform: none;
  letter-spacing: 0;
}
.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 13px 14px;
  border: 1.5px solid var(--line);
  border-radius: 6px;
  background: var(--paper);
  font-family: var(--font-body);
  font-size: 14.5px;
  color: var(--ink);
  transition:
    border-color 0.2s ease,
    box-shadow 0.2s ease;
  appearance: none;
  -webkit-appearance: none;
}
.form-group select {
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 16 16' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M4 6l4 4 4-4' fill='none' stroke='%235a5867' stroke-width='1.5'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  background-size: 16px;
  padding-right: 36px;
  cursor: pointer;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(224, 64, 42, 0.1);
}
.form-group textarea {
  resize: vertical;
  min-height: 110px;
  line-height: 1.55;
}

/* valid tick effect */
.form-group input:not(:placeholder-shown):not(.has-error input),
.form-group textarea:not(:placeholder-shown) {
  border-color: #a8d5a2;
}
.form-group.has-error input,
.form-group.has-error select,
.form-group.has-error textarea {
  border-color: var(--accent-dark);
  box-shadow: 0 0 0 3px rgba(178, 47, 28, 0.1);
}

.form-error {
  font-family: var(--font-tag);
  font-size: 10.5px;
  color: var(--accent-dark);
  margin-top: 6px;
  display: none;
  align-items: center;
  gap: 4px;
}
.form-error::before {
  content: "⚠ ";
}
.form-group.has-error .form-error {
  display: flex;
}

/* --- submit button --- */
.submit-btn {
  width: 100%;
  justify-content: center;
  gap: 10px;
  padding: 15px 24px;
  font-size: 14px;
  position: relative;
  overflow: hidden;
}
.submit-btn::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(255, 255, 255, 0.12);
  transform: translateX(-101%);
  transition: transform 0.3s ease;
}
.submit-btn:hover::before {
  transform: translateX(0);
}
.submit-arrow {
  width: 18px;
  height: 18px;
  transition: transform 0.2s ease;
}
.submit-btn:hover .submit-arrow {
  transform: translateX(4px);
}

/* form status */
.form-status {
  margin-top: 18px;
  font-family: var(--font-tag);
  font-size: 12.5px;
  display: none;
  padding: 14px 16px;
  border-radius: 6px;
  line-height: 1.55;
}
.form-status.success {
  display: block;
  background: rgba(46, 110, 98, 0.08);
  color: var(--accent-3);
  border: 1px solid rgba(46, 110, 98, 0.3);
}
.form-status.success::before {
  content: "✓ ";
  font-weight: 700;
}

/* --- responsive --- */
@media (max-width: 960px) {
  .contact-grid {
    grid-template-columns: 1fr;
  }
  .contact-info {
    flex-direction: row;
    flex-wrap: wrap;
  }
  .contact-card,
  .contact-hours {
    flex: 1 1 calc(50% - 7px);
    min-width: 220px;
  }
  .contact-form {
    padding: 24px 22px 28px;
  }
  .form-header {
    padding: 20px 22px 18px;
  }
}
@media (max-width: 600px) {
  .contact-info {
    flex-direction: column;
  }
  .contact-card,
  .contact-hours {
    flex: 1 1 100%;
  }
  .form-row {
    grid-template-columns: 1fr;
  }
  .contact-hero {
    padding: 60px 0 50px;
  }
}

/* ---------- footer ---------- */
.site-footer {
  background: var(--ink);
  color: #cfccd6;
  padding: 54px 0 28px;
}
.footer-top {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 30px;
  padding-bottom: 34px;
  border-bottom: 1px solid #2c2a35;
  margin-bottom: 24px;
}
.footer-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  color: var(--paper);
  font-size: 17px;
}
.footer-logo .mark {
  width: 28px;
  height: 28px;
}
.footer-cols {
  display: flex;
  gap: 50px;
  flex-wrap: wrap;
}
.footer-col h5 {
  font-family: var(--font-tag);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #8c899a;
  margin: 0 0 12px;
}
.footer-col a {
  display: block;
  font-size: 13.5px;
  margin-bottom: 8px;
  color: #cfccd6;
}
.footer-col a:hover {
  color: var(--accent);
}
.footer-bottom {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  font-family: var(--font-tag);
  font-size: 11px;
  color: #75737f;
}

/* generic reveal helper used by JS */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition:
    opacity 0.5s ease,
    transform 0.5s ease;
}
.reveal.in-view {
  opacity: 1;
  transform: translateY(0);
}
