@font-face {
  font-family: "Engravers Hille";
  src: url("/fonts/engravers-bold.ttf") format("truetype");
  font-weight: 100 900;
  font-display: swap;
}

:root {
  --bg: #F1F1E8;
  --ink: #505D4B;        /* logo green */
  --text: #3d453a;
  --muted: #7c8577;
  --line: rgba(80, 93, 75, .22);
  --display: "Engravers Hille", "Engravers MT", "EngraversMT", "Engravers", "Cinzel", "Times New Roman", serif;
  --serif: "Times New Roman", Times, serif;
  --gutter: clamp(16px, 4vw, 56px);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--serif);
  font-size: 18px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { display: block; width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }

/* ---------- header ---------- */
.site-header {
  position: relative; z-index: 20;
  display: flex; flex-direction: column; align-items: center;
  padding: 40px var(--gutter) 34px;
  background: var(--bg);
}
/* The logo: "HILLE & CO." in Engravers, widely spaced. */
.wordmark, .footer-mark {
  font-family: var(--display);
  text-transform: uppercase;
  color: var(--ink);
  letter-spacing: .3em;
  margin-right: -.3em; /* no trailing gap after the period */
  white-space: nowrap;
}
.wordmark { font-size: clamp(22px, 2.6vw, 34px); line-height: 1; }
.site-nav { display: flex; align-items: baseline; gap: 14px; margin-top: 30px; }
.site-nav a {
  font-family: var(--serif);
  font-size: 13px; letter-spacing: .14em; text-transform: uppercase;
  color: var(--muted);
  padding: 2px 0;
  border-bottom: 1px solid transparent;
  transition: color .25s, border-color .25s;
}
.site-nav a:hover, .site-nav a[aria-current] { color: var(--ink); border-color: var(--ink); }
.tilde { color: var(--muted); font-size: 13px; }
.menu-btn { display: none; }

/* ---------- home ---------- */
.hero { padding: 0; }
.hero img { height: calc(100vh - 170px); min-height: 420px; max-height: 900px; object-fit: cover; }

.statement {
  max-width: 880px; margin: 0 auto;
  padding: clamp(80px, 12vw, 160px) var(--gutter);
  text-align: center;
}
.eyebrow, .sub, .place, figcaption {
  font-family: var(--serif);
  font-size: 11px; letter-spacing: .28em; text-transform: uppercase;
  color: var(--muted);
}
.statement h1 {
  font-family: var(--serif); font-weight: 400;
  font-size: clamp(28px, 3.6vw, 46px); line-height: 1.25;
  color: var(--ink);
  margin: 24px 0 36px;
}
.text-link {
  font-family: var(--serif); font-size: 12px; letter-spacing: .24em; text-transform: uppercase;
  color: var(--ink); border-bottom: 1px solid var(--ink); padding-bottom: 4px;
}

.featured {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: clamp(40px, 5vw, 70px) var(--gutter);
  padding: 0 var(--gutter);
}
.feature .frame img { aspect-ratio: 4 / 5; }

.frame { overflow: hidden; }
.frame img { object-fit: cover; transition: transform 1.2s cubic-bezier(.2, .6, .2, 1); }
a:hover .frame img { transform: scale(1.03); }
.caption { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; margin-top: 16px; }
.caption .name { font-family: var(--display); font-size: 14px; letter-spacing: .18em; text-transform: uppercase; color: var(--ink); }

.cta { text-align: center; padding: clamp(100px, 14vw, 180px) var(--gutter); max-width: 900px; margin: 0 auto; }
.quote { font-style: italic; font-size: clamp(22px, 2.6vw, 32px); line-height: 1.4; color: var(--ink); margin-bottom: 44px; }

.button {
  display: inline-block;
  font-family: var(--serif); font-size: 13px; letter-spacing: .24em; text-transform: uppercase;
  color: var(--bg); background: var(--ink);
  border: 1px solid var(--ink);
  padding: 17px 34px 15px;
  cursor: pointer;
  transition: background .3s, color .3s;
}
.button:hover { background: transparent; color: var(--ink); }

/* ---------- interior pages ---------- */
.page-head { text-align: center; padding: clamp(60px, 9vw, 120px) var(--gutter) clamp(40px, 6vw, 80px); max-width: 820px; margin: 0 auto; }
.page-head h1 {
  font-family: var(--display); font-weight: 400;
  font-size: clamp(26px, 3.4vw, 40px); letter-spacing: .2em; text-transform: uppercase;
  color: var(--ink);
}
.page-head .sub { margin-top: 14px; }
.page-head .intro { margin-top: 26px; font-size: 20px; color: var(--text); }

.grid {
  display: grid; grid-template-columns: repeat(2, 1fr);
  gap: clamp(50px, 7vw, 100px) var(--gutter);
  padding: 0 var(--gutter) clamp(80px, 10vw, 140px);
}
.grid .tile .frame img { aspect-ratio: 4 / 5; }

/* project detail */
.project-head { text-align: center; padding: clamp(60px, 9vw, 120px) var(--gutter) 50px; max-width: 760px; margin: 0 auto; }
.project-head h1 { font-family: var(--display); font-weight: 400; font-size: clamp(26px, 3.4vw, 40px); letter-spacing: .18em; text-transform: uppercase; color: var(--ink); }
.project-head .place { display: block; margin: 14px 0 34px; }
.project-head p { font-size: 20px; }
.gallery { display: grid; grid-template-columns: 1fr 1fr; gap: var(--gutter); padding: 0 var(--gutter); }
.gallery img { height: 100%; object-fit: cover; }
.gallery .wide { grid-column: 1 / -1; }
.gallery .wide img { aspect-ratio: 16 / 9; }
.gallery .half img { aspect-ratio: 4 / 5; }
.project-nav { display: flex; justify-content: space-between; padding: 70px var(--gutter) 110px; }
.project-nav a { font-family: var(--display); font-size: 12px; letter-spacing: .24em; text-transform: uppercase; color: var(--ink); }

/* philosophy */
.about {
  display: grid; grid-template-columns: 5fr 6fr; gap: clamp(40px, 7vw, 120px);
  align-items: center;
  max-width: 1280px; margin: 0 auto;
  padding: 0 var(--gutter) clamp(90px, 11vw, 160px);
}
.about-photo img { aspect-ratio: 4 / 5; object-fit: cover; object-position: 50% 35%; }
.about-photo figcaption { margin-top: 14px; }
.about-copy p { margin-bottom: 1.2em; font-size: 19px; }
.about-copy .lede { font-size: clamp(22px, 2.2vw, 28px); line-height: 1.4; color: var(--ink); margin-bottom: 1.4em; }
.about-copy .closing { font-style: italic; color: var(--muted); font-size: 21px; margin: 1.8em 0 2.2em; }

/* contact */
.inquiry { max-width: 760px; margin: 0 auto; padding: 0 var(--gutter) clamp(90px, 11vw, 150px); }
form label {
  display: block; margin-bottom: 30px;
  font-family: var(--serif); font-size: 12px; letter-spacing: .2em; text-transform: uppercase; color: var(--ink);
}
form .row { display: grid; grid-template-columns: 1fr 1fr; gap: 30px; }
input, select, textarea {
  display: block; width: 100%; margin-top: 10px;
  font: 18px/1.4 var(--serif); color: var(--text);
  background: transparent;
  border: 0; border-bottom: 1px solid var(--line); border-radius: 0;
  padding: 8px 0 10px;
  letter-spacing: 0; text-transform: none;
  -webkit-appearance: none; appearance: none;
}
select {
  background-image: linear-gradient(45deg, transparent 50%, var(--ink) 50%), linear-gradient(135deg, var(--ink) 50%, transparent 50%);
  background-position: calc(100% - 12px) 55%, calc(100% - 7px) 55%;
  background-size: 5px 5px; background-repeat: no-repeat;
}
textarea { border: 1px solid var(--line); padding: 12px 14px; resize: vertical; margin-top: 14px; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--ink); }
input[aria-invalid="true"], textarea[aria-invalid="true"] { border-color: #9a4a3a; }
.hp { position: absolute; left: -9999px; }
.referral[hidden] { display: none; }
form fieldset { border: 0; padding: 0; margin: 0 0 30px; min-width: 0; }
form legend {
  padding: 0; margin-bottom: 16px;
  font-family: var(--serif); font-size: 11px; letter-spacing: .24em; text-transform: uppercase; color: var(--ink);
}
form .row-3 { grid-template-columns: 2fr 1fr 1fr; }
.checks { display: flex; flex-wrap: wrap; gap: 14px 34px; }
.checks legend { width: 100%; }
.checks label { display: flex; align-items: center; gap: 10px; margin: 0; cursor: pointer; }
.checks input {
  width: 16px; height: 16px; margin: 0; padding: 0; flex: none;
  border: 1px solid var(--ink); border-radius: 0; cursor: pointer;
}
.checks input:checked { background: var(--ink); box-shadow: inset 0 0 0 3px var(--bg); }
.checks.invalid input { border-color: #9a4a3a; }
.contact-info { margin-top: 60px; padding-top: 34px; border-top: 1px solid var(--line); text-align: center; }
.contact-info p { margin: 0 0 8px; font-family: var(--serif); font-size: 12px; letter-spacing: .22em; text-transform: uppercase; color: var(--ink); }
.contact-info a { color: inherit; text-transform: none; letter-spacing: .05em; font-size: 15px; }
.form-status { margin-top: 22px; font-style: italic; color: var(--ink); min-height: 1.6em; }
form.sent { text-align: center; }

/* privacy / terms */
.legal { max-width: 720px; margin: 0 auto; padding: 0 var(--gutter) clamp(90px, 11vw, 150px); }
.legal h2 { font-family: var(--serif); font-weight: 400; font-size: 13px; letter-spacing: .22em; text-transform: uppercase; color: var(--ink); margin: 34px 0 10px; }
.legal p { font-size: 18px; line-height: 1.6; }

/* ---------- footer ---------- */
.site-footer { border-top: 1px solid var(--line); margin: 0 var(--gutter); padding: 60px 0 46px; text-align: center; }
.footer-mark { font-size: 20px; }
.footer-links { display: flex; justify-content: center; flex-wrap: wrap; gap: 14px 32px; margin: 26px 0 30px; }
.footer-links a, .footer-line { font-family: var(--serif); font-size: 12px; letter-spacing: .22em; text-transform: uppercase; color: var(--ink); }
.footer-line { color: var(--muted); font-size: 10px; }
.footer-legal { margin: 22px 0 14px; font-size: 13px; }
.footer-legal a { color: var(--muted); }

/* ---------- motion ---------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity 1s ease, transform 1s ease; }
.reveal.in { opacity: 1; transform: none; }
.no-js .reveal { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .frame img { transition: none; }
}

/* ---------- mobile ---------- */
@media (max-width: 760px) {
  body { font-size: 17px; }
  .site-header { flex-direction: row; justify-content: space-between; padding: 22px var(--gutter); }
  .wordmark { font-size: 19px; }
  .tilde { display: none; }
  .menu-btn {
    display: flex; flex-direction: column; justify-content: center; gap: 7px;
    width: 34px; height: 34px; background: none; border: 0; cursor: pointer;
  }
  .menu-btn span { display: block; height: 1px; background: var(--ink); transition: transform .3s; }
  .menu-open .menu-btn span:first-child { transform: translateY(4px) rotate(45deg); }
  .menu-open .menu-btn span:last-child { transform: translateY(-4px) rotate(-45deg); }
  .site-nav {
    position: fixed; inset: 70px 0 0 0; margin-top: 0; background: var(--bg);
    flex-direction: column; align-items: center; justify-content: center; gap: 40px;
    opacity: 0; pointer-events: none; transition: opacity .3s;
  }
  .site-nav a { font-size: 16px; }
  .menu-open .site-nav { opacity: 1; pointer-events: auto; }
  .hero img { height: 70vh; min-height: 360px; }
  .featured { display: flex; flex-direction: column; gap: 60px; }
  .grid { grid-template-columns: 1fr; }
  .grid .tile:nth-child(even) { margin-top: 0; }
  .gallery { grid-template-columns: 1fr; }
  .about { grid-template-columns: 1fr; }
  form .row { grid-template-columns: 1fr; gap: 0; }
  .caption { flex-direction: column; gap: 4px; }
}

/* Portfolio with no projects yet */
.coming-soon { text-align: center; max-width: 640px; margin: 0 auto; padding: 0 var(--gutter) clamp(100px, 14vw, 180px); }
.coming-soon p { font-size: 20px; color: var(--text); margin: 0 0 36px; }
/* Homepage before there are portfolio photos: close the gap the photos left */
.home.no-photos .statement { padding-bottom: clamp(30px, 4vw, 50px); }
.home.no-photos .cta { padding-top: clamp(30px, 4vw, 50px); }

/* services */
.services { max-width: 900px; margin: 0 auto; padding: 0 var(--gutter) clamp(90px, 11vw, 150px); }
.svc-block { padding: clamp(40px, 6vw, 70px) 0; border-top: 1px solid var(--line); }
.svc-block:first-child { border-top: 0; padding-top: 0; }
.svc-block p { font-size: 19px; margin-bottom: 1em; }
.svc-h { font-family: var(--serif); font-weight: 400; font-size: 13px; letter-spacing: .24em; text-transform: uppercase; color: var(--muted); margin-bottom: 26px; }
.svc-title { font-family: var(--serif); font-weight: 400; font-size: clamp(22px, 2.2vw, 28px); line-height: 1.4; color: var(--ink); text-transform: uppercase; margin-bottom: 26px; }
.svc-copy { font-family: var(--serif); font-size: 19px; color: var(--ink); line-height: 1.55; margin-bottom: 1em; }
.process { margin-top: 10px; }
.process > summary { list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; padding: 14px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.process > summary::-webkit-details-marker { display: none; }
.process > summary .svc-h { margin-bottom: 0; }
.process > summary .process-toggle { width: 14px; height: 14px; position: relative; }
.process > summary .process-toggle::before, .process > summary .process-toggle::after { content: ""; position: absolute; background: var(--ink); transition: transform .3s ease; }
.process > summary .process-toggle::before { left: 0; right: 0; top: 50%; height: 1px; margin-top: -0.5px; }
.process > summary .process-toggle::after { top: 0; bottom: 0; left: 50%; width: 1px; margin-left: -0.5px; }
.process[open] > summary .process-toggle::after { transform: scaleY(0); }
.process > .phases, .process > .svc-estimate { margin-top: 20px; }
.phases { list-style: none; }
.phase { display: grid; grid-template-columns: 150px 1fr; gap: 10px 40px; padding: 30px 0; border-top: 1px solid var(--line); }
.phase:first-child { border-top: 0; padding-top: 4px; }
.phase-num { font-family: var(--serif); font-size: 13px; letter-spacing: .24em; text-transform: uppercase; color: var(--muted); padding-top: 6px; }
.phase h3 { font-family: var(--serif); font-weight: 400; font-size: 24px; color: var(--ink); line-height: 1.3; }
.phase-pct { color: var(--muted); font-size: 20px; }
.phase-when { font-style: italic; color: var(--muted); font-size: 17px !important; margin: 4px 0 12px !important; }
.phase-body p:last-child { margin-bottom: 0; }
.svc-estimate { margin: 34px 0 0 !important; }
.svc-cost { margin-top: 26px; font-size: 13px; letter-spacing: .24em; text-transform: uppercase; color: var(--muted); line-height: 1.4; }
.svc-close { text-align: center; padding-top: clamp(40px, 6vw, 70px); border-top: 1px solid var(--line); }
.svc-close p { font-size: 19px; line-height: 1.55; color: var(--ink); margin-bottom: 34px; }
@media (max-width: 760px) {
  .phase { grid-template-columns: 1fr; gap: 6px; }
  .phase-num { padding-top: 0; }
}
.svc-estimate a { font-style: italic; color: var(--ink); border-bottom: 1px solid var(--ink); padding-bottom: 2px; }
.svc-estimate a:hover { border-color: transparent; }
