/* Three Pines Studio — redesign in the manner of delphiniumdesign.com
   Palette: greige paper, deep slate navy, seafoam accent, dusty steel.
   Type: Lora (serif display/prose) + Cabin (sans utility). */

:root {
  --paper: #eceae6;
  --paper-deep: #e2dfd8;
  --card: #ffffff;
  --ink: #24446a;
  --ink-soft: #55617e;
  --steel: #55738c;
  --steel-ink: #f4f6f8;
  --seafoam: #8fdcd5;
  --seafoam-deep: #63bfb6;
  --line: #d8d5cd;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  background: var(--paper);
  color: var(--ink-soft);
  font-family: 'Lora', Georgia, serif;
  font-size: 17px;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
}

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

a { color: var(--ink); text-decoration: none; }

:focus-visible { outline: 2px solid var(--seafoam-deep); outline-offset: 3px; }

.wrap { max-width: 1160px; margin: 0 auto; padding: 0 24px; }

/* ---------- header ---------- */

.site-header { border-bottom: 1px solid var(--line); }

.site-header .wrap {
  display: flex; align-items: center; justify-content: space-between;
  gap: 1.5rem; flex-wrap: wrap; padding-top: 26px; padding-bottom: 26px;
}

.logo img {
  height: 34px; width: auto;
  /* logo asset is light line art for a dark bg; render it near-ink on paper */
  filter: brightness(0) opacity(0.82);
}

.site-nav { display: flex; align-items: center; gap: 2.1rem; flex-wrap: wrap; }

.site-nav a {
  font-family: 'Cabin', Arial, sans-serif;
  font-size: 12.5px; font-weight: 600;
  letter-spacing: 0.24em; text-transform: uppercase;
  color: var(--ink);
  padding-bottom: 3px;
  border-bottom: 1px solid transparent;
  transition: color .2s, border-color .2s;
}

.site-nav a:hover { color: var(--seafoam-deep); }
.site-nav a.active { border-bottom-color: var(--seafoam-deep); color: var(--seafoam-deep); }

.site-nav a.btn { border-bottom: none; }

/* ---------- buttons & text links ---------- */

.btn {
  display: inline-block;
  font-family: 'Cabin', Arial, sans-serif;
  font-size: 12.5px; font-weight: 600;
  letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--ink); background: var(--seafoam);
  padding: 0.9em 2em; border-radius: 3px;
  transition: background .2s;
}

.btn:hover { background: var(--seafoam-deep); }

.link-more {
  display: inline-block;
  font-family: 'Cabin', Arial, sans-serif;
  font-size: 12.5px; font-weight: 600;
  letter-spacing: 0.24em; text-transform: uppercase;
  color: var(--ink);
  padding-bottom: 6px;
  border-bottom: 1px solid var(--seafoam-deep);
  transition: color .2s;
}

.link-more:hover { color: var(--seafoam-deep); }

/* ---------- shared section furniture ---------- */

.eyebrow {
  font-family: 'Cabin', Arial, sans-serif;
  font-size: 12px; font-weight: 600;
  letter-spacing: 0.32em; text-transform: uppercase;
  color: var(--seafoam-deep);
  margin-bottom: 1rem;
}

.display {
  font-family: 'Lora', Georgia, serif;
  font-weight: 500;
  font-size: clamp(1.55rem, 3.4vw, 2.15rem);
  letter-spacing: 0.13em; text-transform: uppercase;
  color: var(--ink);
  line-height: 1.35;
}

.section { padding: 5.5rem 0; }
.section.tight { padding: 3.5rem 0; }
.centered { text-align: center; }

.measure { max-width: 720px; margin-left: auto; margin-right: auto; }

/* ---------- statement band (draughting underlay) ---------- */

.statement { position: relative; padding: 7rem 0; overflow: hidden; }

.statement::before {
  content: ""; position: absolute; inset: 0;
  background: url('/assets/tech_draw-ab3M99EI.png') center / 1100px auto repeat;
  opacity: 0.07; pointer-events: none;
}

.statement p {
  position: relative;
  font-size: clamp(1.25rem, 2.5vw, 1.65rem);
  line-height: 1.7; color: var(--ink);
  max-width: 860px; margin: 0 auto; text-align: center;
}

/* ---------- project grid ---------- */

.project-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(290px, 430px));
  justify-content: center;
  gap: 3rem 2.5rem;
  margin-top: 3rem;
}

.project-card { text-align: center; }

.project-card .frame {
  overflow: hidden;
  aspect-ratio: 4 / 5;
  background: var(--card);
  /* white matted-print border; overflow:hidden keeps the hover zoom inside it */
  border: 20px solid var(--card);
  box-shadow: 0 12px 34px rgba(36, 68, 106, 0.11);
}

.project-card img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform .5s ease, opacity .3s;
}

.project-card a:hover img { transform: scale(1.03); opacity: .93; }

.project-card h3 {
  margin-top: 1.4rem;
  font-weight: 600; font-size: 1rem;
  letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--ink);
}

.project-card .sub {
  font-style: italic; font-size: 0.95rem;
  color: var(--ink-soft); margin-top: 0.3rem;
}

/* ---------- testimonial band ---------- */

.testimonial { background: var(--steel); color: var(--steel-ink); padding: 5.5rem 0; }

.testimonial blockquote {
  max-width: 820px; margin: 0 auto; text-align: center;
  font-style: italic;
  font-size: clamp(1.1rem, 2vw, 1.3rem); line-height: 1.85;
}

.testimonial cite {
  display: block; margin-top: 2rem;
  font-style: normal;
  font-family: 'Cabin', Arial, sans-serif;
  font-size: 12.5px; font-weight: 600;
  letter-spacing: 0.26em; text-transform: uppercase;
  color: var(--seafoam);
}

/* ---------- split (about teaser / about page) ---------- */

.split {
  display: grid; grid-template-columns: 5fr 7fr;
  gap: 4rem; align-items: center;
}

.split .photo img { width: 100%; height: auto; }

.split h2 {
  font-weight: 500; font-size: 1.35rem;
  letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--ink); margin-bottom: 1.4rem;
}

.split p + p { margin-top: 1rem; }
.split .link-more { margin-top: 2rem; }

/* ---------- prose / lists ---------- */

.prose p + p { margin-top: 1.2rem; }

.service-list { list-style: none; margin-top: 1.5rem; }

.service-list li {
  padding: 0.9rem 0;
  border-top: 1px solid var(--line);
}

.service-list li:last-child { border-bottom: 1px solid var(--line); }

/* ---------- page title block ---------- */

.page-head { padding: 4.5rem 0 1rem; text-align: center; }

.page-head .meta {
  font-style: italic; color: var(--ink-soft);
  margin-top: 0.8rem;
}

/* ---------- project detail gallery ---------- */

.gallery { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; margin-top: 3rem; }

.gallery figure {
  overflow: hidden;
  background: var(--card);
  border: 14px solid var(--card);
  box-shadow: 0 10px 28px rgba(36, 68, 106, 0.10);
}

.gallery figure.full { grid-column: 1 / -1; }

.gallery img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 4 / 3; }

.gallery figure.full img { aspect-ratio: 16 / 9; }

/* composite images (e.g. before/after boards) must not be cropped */
.gallery figure.contain img { object-fit: contain; background: var(--card); }

.back-row { text-align: center; padding: 3.5rem 0 5rem; }

/* ---------- contact ---------- */

.contact-block { text-align: center; padding-bottom: 2rem; }

.contact-details { margin: 2.75rem auto 0.5rem; }

.contact-line {
  display: block;
  font-size: clamp(1.2rem, 2.6vw, 1.55rem);
  color: var(--ink);
  padding: 0.75rem 0;
  letter-spacing: 0.02em;
}

a.contact-line:hover { color: var(--seafoam-deep); }

.contact-line .label {
  display: block;
  font-family: 'Cabin', Arial, sans-serif;
  font-size: 11.5px; font-weight: 600;
  letter-spacing: 0.28em; text-transform: uppercase;
  color: var(--seafoam-deep);
  margin-bottom: 0.4rem;
}

.social-row { display: flex; justify-content: center; gap: 1.6rem; margin-top: 2.5rem; }

.social-row a { color: var(--ink); transition: color .2s; }
.social-row a:hover { color: var(--seafoam-deep); }
.social-row svg { width: 22px; height: 22px; }

/* ---------- footer ---------- */

.site-footer {
  background: var(--paper-deep);
  border-top: 1px solid var(--line);
  margin-top: 4rem;
  padding: 3.5rem 0 2.5rem;
  text-align: center;
}

.site-footer .logo img { height: 26px; margin: 0 auto; }

.footer-nav {
  display: flex; justify-content: center; flex-wrap: wrap;
  gap: 1.8rem; margin: 2rem 0 1.5rem;
}

.footer-nav a {
  font-family: 'Cabin', Arial, sans-serif;
  font-size: 11.5px; font-weight: 600;
  letter-spacing: 0.26em; text-transform: uppercase;
}

.footer-nav a:hover { color: var(--seafoam-deep); }

.footer-contact {
  font-family: 'Cabin', Arial, sans-serif;
  font-size: 13.5px; letter-spacing: 0.06em;
  color: var(--ink); margin-bottom: 0.6rem;
}

.footer-contact a { color: var(--ink); }
.footer-contact a:hover { color: var(--seafoam-deep); }
.footer-contact span { margin: 0 0.7rem; color: var(--ink-soft); }

.site-footer .fineprint {
  font-family: 'Cabin', Arial, sans-serif;
  font-size: 12.5px; color: var(--ink-soft);
  margin-top: 1.8rem;
}

/* ---------- motion & responsive ---------- */

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

@media (max-width: 860px) {
  .site-header .wrap { justify-content: center; text-align: center; }
  .site-nav { justify-content: center; gap: 1.4rem; }
  .split { grid-template-columns: 1fr; gap: 2.5rem; }
  .split .photo { max-width: 420px; margin: 0 auto; }
  .section { padding: 3.5rem 0; }
  .statement { padding: 4.5rem 0; }
  .gallery { grid-template-columns: 1fr; }
  .project-card .frame { border-width: 14px; }
  .gallery figure { border-width: 10px; }
}
