/* ---------------------------------------------
   Tokens
--------------------------------------------- */
:root {
  --white: #ffffff;
  --paper: #f7f4ec;
  --ink: #1e2b1f;
  --ink-soft: #4a5a4b;
  --brick: #5c3a28;
  --brick-dark: #3e281b;
  --stone: #726f60;
  --stone-light: #e6e3d7;

  --display: "Unbounded", "Inter", sans-serif;
  --body: "Inter", -apple-system, sans-serif;

  --max: 1180px;
  --edge: clamp(28px, 7vw, 96px);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--white);
  color: var(--ink);
  font-family: var(--body);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

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

section { padding: clamp(88px, 12vw, 160px) var(--edge); }

.eyebrow {
  font-family: var(--body);
  font-weight: 600;
  font-size: 0.78rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--brick);
  margin: 0 0 22px;
}

/* faint texture, kept very light so it reads as clean, not busy */
.grain {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 500;
  opacity: 0.02;
  mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ---------------------------------------------
   Header / Nav
--------------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 28px var(--edge);
  background: linear-gradient(var(--white) 75%, transparent);
  backdrop-filter: blur(6px);
}

.wordmark {
  font-family: var(--display);
  font-weight: 600;
  font-size: 1.3rem;
  letter-spacing: 0.01em;
  color: var(--ink);
  border: 1.5px solid var(--ink);
  border-radius: 999px;
  width: 50px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.wordmark-dot { color: var(--brick); }

.main-nav {
  display: flex;
  align-items: center;
  gap: 44px;
  font-size: 0.92rem;
  font-weight: 500;
}
.main-nav a { color: var(--stone); transition: color 0.2s; }
.main-nav a:hover { color: var(--ink); }
.nav-cta {
  color: var(--white) !important;
  background: var(--brick);
  padding: 11px 22px;
  border-radius: 999px;
  font-weight: 600;
}
.nav-cta:hover { background: var(--brick-dark); }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}
.nav-toggle span {
  width: 22px;
  height: 2px;
  background: var(--ink);
}

/* ---------------------------------------------
   Hero
--------------------------------------------- */
.hero {
  padding-top: clamp(110px, 16vw, 200px);
  padding-bottom: clamp(80px, 10vw, 140px);
  max-width: var(--max);
  margin: 0 auto;
}

.hero-headline {
  font-family: var(--display);
  font-weight: 600;
  font-size: clamp(2.3rem, 5.8vw, 4.4rem);
  line-height: 1.18;
  letter-spacing: -0.01em;
  margin: 0 0 40px;
  max-width: 16ch;
  color: var(--ink);
}

.stroke-word {
  position: relative;
  color: var(--ink);
  white-space: nowrap;
}
.stroke {
  position: absolute;
  left: -2%;
  bottom: -0.2em;
  width: 104%;
  height: 0.5em;
  overflow: visible;
}
.stroke path {
  fill: none;
  stroke: var(--brick);
  stroke-width: 5;
  stroke-linecap: round;
  stroke-dasharray: 600;
  stroke-dashoffset: 600;
  animation: draw 1.4s ease forwards 0.5s;
}
.stroke-2 path { stroke: var(--stone); animation-delay: 0.9s; }

@keyframes draw {
  to { stroke-dashoffset: 0; }
}

.hero-sub {
  font-size: 1.12rem;
  color: var(--stone);
  max-width: 50ch;
  margin: 0 0 48px;
  line-height: 1.7;
}

.hero-actions { display: flex; gap: 18px; flex-wrap: wrap; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 15px 32px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  transition: transform 0.2s ease, background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}
.btn-primary {
  background: var(--brick);
  color: var(--white);
}
.btn-primary:hover { background: var(--brick-dark); transform: translateY(-2px); }
.btn-ghost {
  border: 1.5px solid var(--stone-light);
  color: var(--ink);
}
.btn-ghost:hover { border-color: var(--brick); color: var(--brick); transform: translateY(-2px); }

/* ---------------------------------------------
   Services
--------------------------------------------- */
.services { max-width: var(--max); margin: 0 auto; }

.section-heading { max-width: 62ch; margin-bottom: 72px; }
.section-heading h2 {
  font-family: var(--display);
  font-weight: 500;
  font-size: clamp(1.7rem, 3vw, 2.3rem);
  line-height: 1.3;
  margin: 0;
  color: var(--ink);
}

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

.service-card {
  background: var(--paper);
  border-radius: 14px;
  padding: 44px 36px;
  position: relative;
}
.service-mark {
  font-family: var(--display);
  font-weight: 600;
  font-size: 1.7rem;
  color: var(--brick);
  display: block;
  margin-bottom: 28px;
}
.service-card h3 {
  font-family: var(--display);
  font-weight: 500;
  font-size: 1.2rem;
  margin: 0 0 16px;
  color: var(--ink);
}
.service-card p {
  color: var(--stone);
  font-size: 0.96rem;
  line-height: 1.7;
  margin: 0;
}

/* ---------------------------------------------
   Portfolio — hung signboard tiles
--------------------------------------------- */
.portfolio {
  max-width: var(--max);
  margin: 0 auto;
}
.portfolio-note {
  color: var(--stone);
  margin-top: -8px;
}

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

.tile {
  margin: 0;
  aspect-ratio: 1 / 1;
  border-radius: 10px;
  background: var(--paper);
  background-size: cover;
  background-position: center;
  position: relative;
  overflow: hidden;
  box-shadow: 0 12px 28px rgba(30,43,31,0.1);
  transition: transform 0.35s ease, box-shadow 0.35s ease;
}
.tile:hover { transform: translateY(-4px); box-shadow: 0 20px 40px rgba(30,43,31,0.16); }

.tile figcaption {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: 14px 16px;
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--white);
  background: linear-gradient(transparent, rgba(0,0,0,0.55));
  opacity: 0;
  transition: opacity 0.25s ease;
}
.tile:hover figcaption { opacity: 1; }

/* Placeholder textures — swap these for real artwork images */
.tile-1 { background: linear-gradient(135deg, #cbb994, #5c3a28); }
.tile-2 { background: linear-gradient(135deg, #ffffff, #e6e3d7); }
.tile-3 { background: linear-gradient(135deg, #9c8256, #1e2b1f); }
.tile-4 { background: linear-gradient(135deg, #5c3a28, #cbb994); }
.tile-5 { background: linear-gradient(135deg, #4a5a4b, #9c8256); }
.tile-6 { background: linear-gradient(135deg, #f7f4ec, #5c3a28); }
.tile-7 { background: linear-gradient(135deg, #e6e3d7, #ffffff); }
.tile-8 { background: linear-gradient(135deg, #9c8256, #4a5a4b); }
.tile-9 { background: linear-gradient(135deg, #5c3a28, #1e2b1f); }

/* ---------------------------------------------
   About
--------------------------------------------- */
.about { max-width: var(--max); margin: 0 auto; }

.about-plaque {
  background: var(--paper);
  color: var(--ink);
  border-radius: 16px;
  padding: clamp(44px, 7vw, 88px);
  max-width: 78ch;
}
.about-plaque h2 {
  font-family: var(--display);
  font-weight: 500;
  font-size: clamp(1.7rem, 3vw, 2.2rem);
  line-height: 1.3;
  margin: 0 0 10px;
  color: var(--ink);
}
.script-flourish {
  font-family: var(--body);
  font-weight: 600;
  font-size: 0.85rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--brick);
  margin: 0 0 32px !important;
}
.about-plaque p {
  color: var(--ink-soft);
  font-size: 1.04rem;
  line-height: 1.75;
  margin: 0 0 22px;
}
.about-signoff {
  font-family: var(--display);
  font-weight: 500;
  color: var(--brick);
  font-size: 1.05rem;
  margin-bottom: 0 !important;
}

/* ---------------------------------------------
   Contact
--------------------------------------------- */
.contact {
  max-width: var(--max);
  margin: 0 auto;
  text-align: center;
  padding-bottom: 140px;
}
.contact h2 {
  font-family: var(--display);
  font-weight: 600;
  font-size: clamp(1.9rem, 3.8vw, 2.6rem);
  margin: 0 0 20px;
  color: var(--ink);
}
.contact-sub {
  color: var(--stone);
  margin: 0 0 40px;
  font-size: 1.05rem;
}

/* ---------------------------------------------
   Footer
--------------------------------------------- */
.site-footer {
  display: flex;
  justify-content: space-between;
  padding: 36px var(--edge) 48px;
  font-size: 0.85rem;
  color: var(--stone);
  border-top: 1px solid var(--stone-light);
}
.footer-links a:hover { color: var(--brick); }

/* ---------------------------------------------
   Responsive
--------------------------------------------- */
@media (max-width: 860px) {
  .service-grid { grid-template-columns: 1fr; }
  .portfolio-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 640px) {
  .main-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: flex-start;
    gap: 22px;
    background: var(--white);
    padding: 32px var(--edge) 36px;
    border-top: 1px solid var(--stone-light);
  }
  .main-nav.nav-open { display: flex; }
  .nav-toggle { display: flex; }
  .portfolio-grid { grid-template-columns: repeat(2, 1fr); gap: 16px; }
  section { padding: 64px var(--edge); }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .stroke path { animation: none; stroke-dashoffset: 0; }
  .tile, .btn { transition: none; }
}
