/* =================================================================
   Currier & Co. — stylesheet
   -----------------------------------------------------------------
   EDIT ME: All colors, fonts and spacing live in :root below.
   Change these variables to re-theme the whole site at once.
   ================================================================= */
:root {
  /* Brand colors */
  --ink:        #0E1A2B;   /* primary dark / headings */
  --ink-soft:   #2B3A4F;   /* body text */
  --muted:      #616C7A;   /* secondary text (darkened to meet WCAG AA on paper) */
  --accent:     #C2703D;   /* warm accent (buttons, highlights) */
  --accent-dk:  #A85B2C;   /* accent text + hover (WCAG AA on light) */
  --accent-deep:#8E4A23;   /* primary-button hover */
  --paper:      #FBF8F3;   /* warm off-white background */
  --surface:    #FFFFFF;   /* cards / panels */
  --line:       #E7E0D6;   /* hairline borders */

  /* Type */
  --font-display: "Source Serif 4", Georgia, serif;
  --font-body:    "Inter", system-ui, -apple-system, sans-serif;

  /* Layout */
  --maxw: 1080px;
  --radius: 14px;
  --shadow: 0 1px 2px rgba(14,26,43,.05), 0 12px 32px -12px rgba(14,26,43,.18);
}

/* ----------------------- Reset / base ----------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink-soft);
  background: var(--paper);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3 { color: var(--ink); font-family: var(--font-display); line-height: 1.12; margin: 0; }
p { margin: 0 0 1rem; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

.container { width: min(100% - 2.5rem, var(--maxw)); margin-inline: auto; }
.center { text-align: center; }

/* ----------------------- Accessibility ----------------------- */
:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }
.skip-link {
  position: absolute; left: 50%; top: 0; transform: translate(-50%, -120%);
  background: var(--ink); color: #fff; padding: .6rem 1.1rem; border-radius: 0 0 10px 10px;
  font-weight: 600; font-size: .9rem; z-index: 100; transition: transform .2s ease;
}
.skip-link:focus { transform: translate(-50%, 0); }
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* ----------------------- Buttons ----------------------- */
.btn {
  display: inline-block;
  padding: .85rem 1.5rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: .95rem;
  transition: transform .15s ease, background .2s ease, box-shadow .2s ease, color .2s ease;
  border: 1.5px solid transparent;
  cursor: pointer;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--accent-dk); color: #fff; }
.btn-primary:hover { background: var(--accent-deep); box-shadow: 0 8px 20px -8px var(--accent-dk); }
.btn-ghost { border-color: var(--line); color: var(--ink); background: transparent; }
.btn-ghost:hover { border-color: var(--ink); }

/* ----------------------- Header / Nav ----------------------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(251,248,243,.82);
  backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--line);
}
.nav { display: flex; align-items: center; justify-content: space-between; height: 68px; }
.brand { display: flex; align-items: center; gap: .6rem; font-weight: 600; }
.brand-mark {
  display: grid; place-items: center;
  width: 34px; height: 34px; border-radius: 9px;
  background: var(--ink); color: #fff;
  font-family: var(--font-display); font-weight: 700; font-size: 1.15rem;
}
.brand-text { font-family: var(--font-display); font-size: 1.15rem; color: var(--ink); }
.nav-links { display: flex; align-items: center; gap: 2rem; list-style: none; margin: 0; padding: 0; }
.nav-links a { color: var(--ink-soft); font-weight: 500; font-size: .95rem; transition: color .15s; }
.nav-links a:hover { color: var(--accent-dk); }
.nav-cta { padding: .5rem 1.1rem; border: 1.5px solid var(--line); border-radius: 999px; }
.nav-cta:hover { border-color: var(--accent); }

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

/* ----------------------- Hero ----------------------- */
.hero { position: relative; overflow: hidden; padding: clamp(4rem, 12vw, 8rem) 0 clamp(3.5rem, 9vw, 6rem); }
.hero-inner { position: relative; z-index: 2; max-width: 760px; }
.eyebrow { text-transform: uppercase; letter-spacing: .14em; font-size: .8rem; font-weight: 600; color: var(--accent-dk); margin-bottom: 1.2rem; }
.hero-title { font-size: clamp(2.4rem, 6vw, 4rem); font-weight: 600; letter-spacing: -.01em; }
.hero-sub { font-size: clamp(1.05rem, 2.2vw, 1.3rem); color: var(--muted); margin: 1.5rem 0 2.2rem; max-width: 56ch; }
.hero-actions { display: flex; gap: 1rem; flex-wrap: wrap; }
.hero-glow {
  position: absolute; z-index: 1; top: -30%; right: -10%;
  width: 60vw; height: 60vw; max-width: 620px; max-height: 620px;
  background: radial-gradient(circle, rgba(194,112,61,.16), transparent 62%);
  border-radius: 50%; pointer-events: none;
}

/* ----------------------- Sections ----------------------- */
.section { padding: clamp(3.5rem, 9vw, 6rem) 0; }
.section-muted { background: var(--surface); border-block: 1px solid var(--line); }
.section-eyebrow { text-transform: uppercase; letter-spacing: .14em; font-size: .78rem; font-weight: 600; color: var(--accent-dk); margin-bottom: .8rem; }
.section-title { font-size: clamp(1.7rem, 4vw, 2.5rem); font-weight: 600; }
.section-lead { color: var(--muted); max-width: 60ch; margin: 1rem auto 0; font-size: 1.08rem; }

.grid-2 { display: grid; grid-template-columns: 1fr 1.3fr; gap: clamp(1.5rem, 5vw, 4rem); align-items: start; }
.prose p { color: var(--ink-soft); font-size: 1.08rem; }

/* ----------------------- Cards (focus) ----------------------- */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.4rem; margin-top: 2.6rem; }
.card {
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1.8rem 1.6rem; transition: transform .2s ease, box-shadow .2s ease;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.card-icon { font-size: 1.6rem; color: var(--accent); margin-bottom: .8rem; }
.card h3 { font-size: 1.2rem; margin-bottom: .5rem; }
.card p { color: var(--muted); margin: 0; font-size: .98rem; }
.card .card-eg { margin: .9rem 0 0; padding-top: .8rem; border-top: 1px solid var(--line); font-size: .82rem; color: var(--muted); }

/* ----------------------- How we work (steps) ----------------------- */
.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 1.2rem; margin-top: 2.6rem; }
.step { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.5rem 1.4rem; }
.step-num {
  display: inline-grid; place-items: center; width: 32px; height: 32px; border-radius: 999px;
  background: var(--ink); color: #fff; font-family: var(--font-display); font-weight: 700; font-size: 1rem; margin-bottom: .9rem;
}
.step h3 { font-size: 1.05rem; margin-bottom: .4rem; }
.step p { color: var(--muted); margin: 0; font-size: .92rem; }

/* ----------------------- Portfolio ----------------------- */
.projects { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 1.6rem; margin-top: 2.8rem; }
.project {
  display: flex; flex-direction: column;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; transition: transform .2s ease, box-shadow .2s ease, border-color .2s;
}
.project:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: #d9cfc0; }
.project-banner {
  height: 132px; display: grid; place-items: center;
  font-family: var(--font-display); font-size: 2.4rem; font-weight: 700; color: #fff;
  letter-spacing: .02em;
}
.project-body { padding: 1.5rem 1.5rem 1.3rem; display: flex; flex-direction: column; flex: 1; }
.project-status {
  align-self: flex-start; font-size: .72rem; font-weight: 600; text-transform: uppercase; letter-spacing: .08em;
  color: var(--accent-deep); background: rgba(194,112,61,.1); padding: .25rem .6rem; border-radius: 999px; margin-bottom: .8rem;
}
.project h3 { font-size: 1.3rem; margin-bottom: .4rem; }
.project-tagline { color: var(--ink-soft); font-weight: 500; margin-bottom: .5rem; }
.project-desc { color: var(--muted); font-size: .96rem; flex: 1; }
.project-tags { display: flex; flex-wrap: wrap; gap: .4rem; margin: 1rem 0; }
.project-tags span { font-size: .76rem; color: var(--ink-soft); background: var(--paper); border: 1px solid var(--line); padding: .22rem .6rem; border-radius: 6px; }
.project-links { display: flex; gap: 1.2rem; margin-top: .4rem; }
.project-links a { font-weight: 600; font-size: .92rem; color: var(--ink); display: inline-flex; align-items: center; gap: .3rem; }
.project-links a:hover { color: var(--accent-dk); }
.project-links a .arrow { transition: transform .15s; }
.project-links a:hover .arrow { transform: translate(2px, -2px); }

/* ----------------------- Contact ----------------------- */
.contact-inner { text-align: center; }
.contact-actions { display: flex; gap: 1rem; justify-content: center; margin-top: 2rem; flex-wrap: wrap; }

/* ----------------------- Footer ----------------------- */
.site-footer { border-top: 1px solid var(--line); padding: 2rem 0; }
.footer-inner { display: flex; justify-content: space-between; align-items: center; color: var(--muted); font-size: .9rem; flex-wrap: wrap; gap: .8rem; }
.back-top:hover { color: var(--accent-dk); }

/* ----------------------- Responsive ----------------------- */
@media (max-width: 820px) {
  .grid-2 { grid-template-columns: 1fr; }
  .cards { grid-template-columns: 1fr; }
  .nav-toggle { display: flex; }
  .nav-links {
    position: absolute; top: 68px; left: 0; right: 0;
    flex-direction: column; align-items: flex-start; gap: 0;
    background: var(--paper); border-bottom: 1px solid var(--line);
    padding: .5rem 1.25rem 1rem; transform: translateY(-150%);
    transition: transform .28s ease, visibility .28s; visibility: hidden; z-index: -1;
  }
  .nav-links.open { transform: translateY(0); visibility: visible; }
  .nav-links li { width: 100%; }
  .nav-links a { display: block; padding: .85rem 0; width: 100%; }
  .nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav-toggle.open span:nth-child(2) { opacity: 0; }
  .nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
}

@media (prefers-reduced-motion: reduce) {
  * { scroll-behavior: auto !important; transition: none !important; }
}

/* ----------------------- Project logos on banner ----------------------- */
/* Banner is now a light, brand-tinted panel so real logos read clearly. */
.project-banner { color: var(--ink); border-bottom: 1px solid var(--line); }
.project-logo {
  max-height: 66px;
  max-width: 72%;
  width: auto;
  height: auto;
  object-fit: contain;
  display: block;
}
.project-initials {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 2.4rem;
  color: var(--ink);
  letter-spacing: .02em;
}

/* ----------------------- Clickable project cards ----------------------- */
a.project-link { cursor: pointer; color: inherit; text-decoration: none; }
.project-open {
  margin-top: .4rem;
  font-weight: 600;
  font-size: .9rem;
  color: var(--ink);
  display: inline-flex;
  align-items: center;
  gap: .35rem;
}
.project-open .arrow { transition: transform .15s; }
.project-link:hover .project-open { color: var(--accent-dk); }
.project-link:hover .project-open .arrow { transform: translate(2px, -2px); }

/* ----------------------- Contact email line ----------------------- */
.contact-email { margin-top: 1.8rem; font-size: 1.15rem; color: var(--muted); }
.contact-email a { color: var(--accent-dk); font-weight: 600; }
.contact-email a:hover { color: var(--accent-deep); text-decoration: underline; }
