@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&family=Manrope:wght@400;500;600;700;800&display=swap');

:root {
  color-scheme: light;
  --ink: #17211d;
  --muted: #65716a;
  --paper: #f7f7f0;
  --card: #ffffff;
  --line: #e0e5db;
  --green: #d7f36b;
  --green-dark: #28371e;
  --lavender: #e7e3fb;
  --peach: #f7dfcf;
  --radius: 22px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: "DM Sans", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; }
.wrap { width: min(1100px, calc(100% - 48px)); margin-inline: auto; }

/* ─── Header ─── */
.site-header {
  width: min(1100px, calc(100% - 48px));
  margin: 0 auto;
  min-height: 88px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  border-bottom: 1px solid var(--line);
}
.brand { display: inline-flex; align-items: center; gap: 11px; text-decoration: none; }

/* Enhancement #5 — Brand mark micro-animation */
.brand-mark {
  display: grid; place-items: center; width: 38px; height: 38px;
  background: var(--green); border-radius: 13px;
  font: 800 21px "Manrope", sans-serif; transform: rotate(-5deg);
  transition: transform 0.4s cubic-bezier(.34,1.56,.64,1), background 0.3s ease;
}
.brand:hover .brand-mark {
  transform: rotate(5deg) scale(1.08);
  background: #c8e85a;
}
.brand-name, .footer-brand { font: 800 18px "Manrope", sans-serif; letter-spacing: .13em; }

/* Enhancement #10 — Nav link hover underlines */
nav { display: flex; gap: clamp(16px, 3vw, 34px); }
nav a, .footer-links a {
  color: var(--muted);
  font-size: 13px;
  text-decoration: none;
  position: relative;
}
nav a::after, .footer-links a::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 1.5px;
  background: var(--ink);
  transition: width 0.3s ease;
}
nav a:hover::after, .footer-links a:hover::after {
  width: 100%;
}
nav a:hover, .footer-links a:hover { color: var(--ink); }

/* ─── Hero ─── */

/* Enhancement #4 — Gradient mesh background on hero */
.hero {
  padding: clamp(76px, 12vw, 140px) 0 86px;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 50% at 20% 40%, rgba(215,243,107,.18) 0%, transparent 70%),
    radial-gradient(ellipse 60% 70% at 80% 20%, rgba(231,227,251,.22) 0%, transparent 70%),
    radial-gradient(ellipse 50% 60% at 60% 80%, rgba(247,223,207,.18) 0%, transparent 70%);
  animation: gradientShift 12s ease-in-out infinite alternate;
  pointer-events: none;
  z-index: 0;
}
.hero > * { position: relative; z-index: 1; }

@keyframes gradientShift {
  0%   { opacity: 0.6; transform: scale(1) translate(0, 0); }
  50%  { opacity: 1;   transform: scale(1.05) translate(-1%, 2%); }
  100% { opacity: 0.7; transform: scale(1.02) translate(1%, -1%); }
}

/* Enhancement #3 — Pulsing hero dot */
.eyebrow { margin: 0 0 24px; font-size: 11px; font-weight: 700; letter-spacing: .16em; }
.eyebrow-dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  margin-right: 8px;
  border-radius: 50%;
  background: #7fa63b;
  animation: pulse 2.2s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(127,166,59,.5); }
  50%      { box-shadow: 0 0 0 7px rgba(127,166,59,0); }
}

h1, h2, h3, p { margin-top: 0; }
h1, h2, h3 { font-family: "Manrope", sans-serif; letter-spacing: -.045em; line-height: 1.12; }
h1 { max-width: 850px; margin-bottom: 26px; font-size: clamp(43px, 7.5vw, 82px); font-weight: 800; }
h1 span { color: #718449; }

/* Enhancement #7 — Animated heading reveal */
.hero h1 {
  animation: headingReveal 0.9s cubic-bezier(.22,1,.36,1) 0.15s both;
}
.hero .hero-copy {
  animation: headingReveal 0.9s cubic-bezier(.22,1,.36,1) 0.35s both;
}
.hero .primary-link {
  animation: headingReveal 0.9s cubic-bezier(.22,1,.36,1) 0.5s both;
}
@keyframes headingReveal {
  from { opacity: 0; transform: translateY(30px); filter: blur(4px); }
  to   { opacity: 1; transform: translateY(0);    filter: blur(0); }
}

.hero-copy { max-width: 620px; color: var(--muted); font-size: clamp(16px, 2vw, 19px); }
.primary-link {
  display: inline-flex; align-items: center; gap: 25px; margin-top: 20px;
  padding: 15px 19px; background: var(--ink); color: white; border-radius: 12px;
  font-size: 13px; font-weight: 600; text-decoration: none;
  transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
}
.primary-link:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(23,33,29,.2);
  background: #1f2d25;
}
.primary-link span { color: var(--green); font-size: 19px; transition: transform 0.3s ease; }
.primary-link:hover span { transform: translate(3px, 3px); }

.hero-note { display: flex; align-items: center; gap: 12px; margin-top: 56px; color: var(--muted); font-size: 12px; }
.note-line { width: 38px; height: 1px; background: #9ba58f; }

/* Enhancement #9 — Scroll indicator */
.scroll-indicator {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  margin-top: 48px;
  color: var(--muted);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  opacity: 0.6;
}
.scroll-indicator .scroll-chevron {
  width: 20px;
  height: 20px;
  border-right: 2px solid var(--muted);
  border-bottom: 2px solid var(--muted);
  transform: rotate(45deg);
  animation: scrollBounce 2s ease-in-out infinite;
}
@keyframes scrollBounce {
  0%, 100% { transform: rotate(45deg) translate(0, 0); opacity: 0.4; }
  50%      { transform: rotate(45deg) translate(4px, 4px); opacity: 1; }
}

/* ─── Sections ─── */

/* Enhancement #6 — Section label accent bars */
.section { display: grid; grid-template-columns: 190px 1fr; gap: 40px; padding: 65px 0; border-top: 1px solid var(--line); }
.section-label {
  padding-top: 8px;
  color: #78846e;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .15em;
  position: relative;
  padding-left: 18px;
}
.section-label::before {
  content: '';
  position: absolute;
  left: 0;
  top: 10px;
  width: 8px;
  height: 8px;
  border-radius: 2px;
  background: var(--green);
  transition: transform 0.3s ease;
}
.section:hover .section-label::before {
  transform: scale(1.3) rotate(45deg);
}
.section-content { max-width: 760px; }
h2 { margin-bottom: 22px; font-size: clamp(28px, 4vw, 43px); }
.section-content p { max-width: 700px; color: var(--muted); }

/* ─── Work Cards ─── */
.work-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }

/* Enhancement #2 — Card hover effects with depth */
.work-card {
  position: relative;
  min-height: 255px;
  padding: 25px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--card);
  transition: transform 0.35s cubic-bezier(.34,1.56,.64,1), box-shadow 0.35s ease;
}
.work-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 16px 40px rgba(23,33,29,.1), 0 4px 12px rgba(23,33,29,.06);
}
.work-card:nth-child(2) { background: var(--lavender); border-color: transparent; }
.work-card:nth-child(3) { background: var(--peach); border-color: transparent; }
.card-index { position: absolute; top: 23px; right: 24px; color: #8a9386; font-size: 11px; font-weight: 700; }
.card-icon {
  display: grid; place-items: center; width: 48px; height: 48px;
  margin: 12px 0 28px; border-radius: 15px;
  background: var(--green); font-size: 24px;
  transition: transform 0.35s cubic-bezier(.34,1.56,.64,1);
}
.work-card:hover .card-icon {
  transform: scale(1.12) rotate(-4deg);
}
.work-card:nth-child(2) .card-icon { background: #fff; }
.work-card:nth-child(3) .card-icon { background: #fff8f1; }
.work-card h3 { margin-bottom: 12px; font-size: 20px; }
.work-card p { margin-bottom: 0; color: #667069; font-size: 13px; }

/* ─── Business Details ─── */
.identity-section { padding-bottom: 80px; }
.details { margin: 28px 0 22px; border-top: 1px solid var(--line); }
.details div {
  display: grid;
  grid-template-columns: minmax(150px, .7fr) 1.3fr;
  gap: 24px;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
  transition: background 0.2s ease, padding-left 0.2s ease;
}
.details div:hover {
  background: rgba(215,243,107,.08);
  padding-left: 8px;
}
.details dt { color: var(--muted); font-size: 13px; }
.details dd { margin: 0; overflow-wrap: anywhere; font-size: 13px; font-weight: 600; }
.small-note { font-size: 12px; }

/* ─── Contact Band ─── */

/* Enhancement #8 — Enhanced contact section with grain texture */
.contact-band {
  padding: 68px 0;
  background: var(--green);
  position: relative;
  overflow: hidden;
}
.contact-band::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.04'/%3E%3C/svg%3E");
  background-size: 200px 200px;
  pointer-events: none;
  z-index: 0;
}
.contact-band > .wrap { position: relative; z-index: 1; }

.contact-inner { display: flex; align-items: end; justify-content: space-between; gap: 36px; }
.contact-band .eyebrow { margin-bottom: 14px; }
.contact-band h2 { max-width: 500px; margin-bottom: 12px; }
.contact-band p:not(.eyebrow) { max-width: 520px; margin-bottom: 0; color: #45523a; font-size: 14px; }
.contact-actions {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 8px;
  flex-shrink: 0;
}
.contact-buttons {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
.contact-email {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 13px 18px;
  background: var(--ink);
  color: white;
  border-radius: 12px;
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  transition: transform 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}
.contact-email:hover {
  background: #23312c;
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(23, 33, 29, 0.25);
}
.contact-email .arrow-icon {
  color: var(--green);
  font-size: 16px;
  transition: transform 0.2s ease;
}
.contact-email:hover .arrow-icon {
  transform: translate(2px, -2px);
}
.contact-copy-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 16px;
  background: rgba(23, 33, 29, 0.08);
  color: var(--ink);
  border: 1.5px solid rgba(23, 33, 29, 0.24);
  border-radius: 12px;
  font-family: inherit;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}
.contact-copy-btn:hover {
  background: rgba(23, 33, 29, 0.16);
  border-color: var(--ink);
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(23,33,29,.12);
}
.contact-copy-btn:focus-visible,
.contact-email:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 2px;
}
.contact-copy-btn.copied {
  background: var(--ink);
  color: var(--green);
  border-color: var(--ink);
}
.copy-status {
  font-size: 12px;
  color: #3b4731;
  font-weight: 600;
  min-height: 18px;
  text-align: right;
  transition: opacity 0.2s ease;
}

/* ─── Footer ─── */

/* Enhancement #10 — Footer polish */
.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-height: 100px;
  color: var(--muted);
  font-size: 11px;
  border-top: 2px solid transparent;
  border-image: linear-gradient(90deg, var(--green), var(--lavender), var(--peach), var(--green)) 1;
}
.footer-brand {
  color: var(--ink);
  text-decoration: none;
  font-size: 14px;
  transition: opacity 0.2s ease;
}
.footer-brand:hover { opacity: 0.7; }
.footer-brand span { padding-left: 3px; font-size: 9px; vertical-align: top; }
.footer-links { display: flex; align-items: center; gap: 18px; }

/* ─── Enhancement #1 — Scroll-triggered fade-in animations ─── */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s cubic-bezier(.22,1,.36,1), transform 0.7s cubic-bezier(.22,1,.36,1), filter 0.7s ease;
  filter: blur(3px);
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
  filter: blur(0);
}
/* Staggered card reveals */
.work-card.reveal:nth-child(1) { transition-delay: 0s; }
.work-card.reveal:nth-child(2) { transition-delay: 0.12s; }
.work-card.reveal:nth-child(3) { transition-delay: 0.24s; }

/* ─── Responsive ─── */
@media (max-width: 760px) {
  .wrap, .site-header { width: min(100% - 36px, 600px); }
  .site-header { min-height: 74px; }
  nav { gap: 14px; }
  nav a { font-size: 12px; }
  .hero { padding: 78px 0 65px; }
  .section { grid-template-columns: 1fr; gap: 20px; padding: 48px 0; }
  .section-label { padding-left: 18px; }
  .work-grid { grid-template-columns: 1fr; }
  .work-card { min-height: 210px; }
  .contact-inner { align-items: start; flex-direction: column; }
  .contact-actions { align-items: flex-start; width: 100%; }
  .contact-buttons { width: 100%; }
  .contact-email, .contact-copy-btn { flex: 1 1 auto; justify-content: center; }
  .copy-status { text-align: left; }
  .site-footer { align-items: start; flex-direction: column; padding: 28px 0; }
  .scroll-indicator { margin-top: 36px; }
}
@media (max-width: 420px) {
  .brand-name { font-size: 15px; }
  nav { gap: 10px; }
  nav a { font-size: 11px; }
  .details div { grid-template-columns: 1fr; gap: 4px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; filter: none; transition: none; }
  .hero h1, .hero .hero-copy, .hero .primary-link { animation: none; }
  .eyebrow-dot { animation: none; }
  .hero::before { animation: none; }
  .scroll-indicator .scroll-chevron { animation: none; }
}
