/* Self-hosted web fonts (Rubik + Barlow, latin and latin-ext subsets).
   The woff2 files under /assets/fonts/ are served from our own origin, so the
   site makes no third-party requests. The latin-ext faces only download if a
   page actually uses a character in that range. */

@font-face {
  font-family: 'Barlow';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('/assets/fonts/barlow-400-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: 'Barlow';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('/assets/fonts/barlow-400-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: 'Barlow';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('/assets/fonts/barlow-500-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: 'Barlow';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('/assets/fonts/barlow-500-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: 'Barlow';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('/assets/fonts/barlow-600-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: 'Barlow';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('/assets/fonts/barlow-600-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: 'Rubik';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('/assets/fonts/rubik-600-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: 'Rubik';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('/assets/fonts/rubik-600-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: 'Rubik';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('/assets/fonts/rubik-700-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: 'Rubik';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('/assets/fonts/rubik-700-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: 'Rubik';
  font-style: normal;
  font-weight: 800;
  font-display: swap;
  src: url('/assets/fonts/rubik-800-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: 'Rubik';
  font-style: normal;
  font-weight: 800;
  font-display: swap;
  src: url('/assets/fonts/rubik-800-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* Hometown Construction — shared styles
   Layout/colour for individual elements stays inline on the elements themselves
   (carried over verbatim from the design export). This file holds the base
   reset, the responsive rules, and every :hover / interaction state, which
   inline styles cannot express. */

html, body {
  margin: 0;
  padding: 0;
  background: #f6f4f0;
  color: #1d1d1b;
  font-family: 'Barlow', Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}
* { box-sizing: border-box }
a { color: #6f6248; text-decoration: none }
a:hover { color: #584d38 }
img { display: block; max-width: 100% }
/* <picture> is inline by default, which would leave a baseline gap under every
   photo, so it takes the <img>'s place as a block box.
   Not display:contents: that promotes the <source> children to grid/flex items
   of the surrounding container, and in the About section's auto-fit grid they
   filled two tracks and pushed the photo onto its own row. Hiding the sources
   costs nothing either way — source selection is an HTML algorithm and does
   not consult CSS. */
picture { display: block }
picture source { display: none }
/* Every <img> carries width/height attributes so the browser can reserve the
   right box before the file arrives. The height attribute is a presentational
   hint, though, so without this it beats the aspect-ratio the layout actually
   wants and the cards render at each photo's natural shape. Inline heights
   (the hero and lightbox fills) still win over this. */
picture img { height: auto }
input, textarea, select { font-family: inherit }
html { scroll-behavior: smooth }

:focus-visible { outline: 2px solid #6f6248; outline-offset: 2px }

/* The project cards, review cards and lightbox thumbnail strip all carry an
   inline display, which beats the user-agent's [hidden] { display: none } and
   left the filters marking items hidden without anything disappearing. This
   has to out-rank an inline style, so it has to be !important. */
[hidden] { display: none !important }

/* ---------- Hover states ---------- */

.ht-nav-links a.nav-link:hover { color: #6f6248 }

.btn-primary { transition: background .25s ease, color .25s ease }
.btn-primary:hover { background: #584d38; color: #fff }

.btn-outline-dark { transition: background .25s ease, color .25s ease }
.btn-outline-dark:hover { background: #3d3d3d; color: #fff }

.btn-dark { transition: background .25s ease, color .25s ease }
.btn-dark:hover { background: #000; color: #fff }

.btn-light { transition: background .25s ease, color .25s ease }
.btn-light:hover { background: #e9e5dd; color: #1d1d1b }

.card-lift { transition: transform .35s ease, box-shadow .35s ease, border-color .35s ease }
.card-lift:hover {
  border-color: #6f6248;
  transform: translateY(-4px);
  box-shadow: 0 14px 30px rgba(29, 29, 27, .10);
}

.zoom img { transition: transform .45s ease }
.zoom:hover img { transform: scale(1.04) }

.quote-dark { transition: transform .35s ease, border-color .35s ease }
.quote-dark:hover { transform: translateY(-4px); border-color: #6f6248 }

.quote-light { transition: transform .35s ease, box-shadow .35s ease }
.quote-light:hover { transform: translateY(-4px); box-shadow: 0 14px 30px rgba(29, 29, 27, .10) }

/* ---------- Filter pills (projects / reviews) ---------- */

.pill {
  border: 1px solid #d5cfc4;
  background: #fffdfa;
  color: #1d1d1b;
  padding: 10px 16px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 13px;
  letter-spacing: .04em;
  text-transform: uppercase;
  cursor: pointer;
  font-family: inherit;
  transition: background .2s ease, color .2s ease, border-color .2s ease;
}
.pill:hover { border-color: #6f6248 }
.pill[aria-pressed="true"] { background: #1d1d1b; color: #fff; border-color: #1d1d1b }

/* ---------- Mobile nav ---------- */

.ht-burger { display: none }
.ht-mobile-menu { display: none }

/* ---------- Contact form states ---------- */

.ht-form input:focus, .ht-form textarea:focus, .ht-form select:focus {
  outline: none;
  border-color: #6f6248;
  box-shadow: 0 0 0 3px rgba(111, 98, 72, .15);
}
.ht-form button[disabled] { opacity: .65; cursor: progress }
.form-status { grid-column: 1 / -1; margin: 0; font-size: 14px; line-height: 1.5 }
.form-status.is-error { color: #a4322a }
.form-status.is-success { color: #3f6b46 }
/* Honeypot — hidden from people, visible to naive bots. */
.hp-field {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

/* ---------- Lightbox (projects) ---------- */

.lb { position: fixed; inset: 0; z-index: 100; background: rgba(20, 20, 19, .94); display: flex; flex-direction: column; color: #fff }
.lb[hidden] { display: none }
.lb-btn {
  background: rgba(255, 255, 255, .1);
  border: 0;
  color: #fff;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  font-size: 22px;
  cursor: pointer;
  line-height: 1;
  transition: background .2s ease;
}
.lb-btn:hover { background: rgba(255, 255, 255, .22) }
.lb-thumb {
  width: 72px;
  height: 54px;
  object-fit: cover;
  border-radius: 3px;
  cursor: pointer;
  flex: none;
  opacity: .5;
  outline: 2px solid transparent;
  outline-offset: 2px;
  transition: opacity .2s ease;
}
.lb-thumb:hover { opacity: .8 }
.lb-thumb[aria-current="true"] { opacity: 1; outline-color: #6f6248 }
body.lb-open { overflow: hidden }

.lb-stage {
  flex: 1;
  min-height: 0;
  display: grid;
  grid-template-columns: 56px minmax(0, 1fr) 56px;
  grid-template-rows: minmax(0, 1fr);
  align-items: center;
  gap: 8px;
  padding: 0 12px;
}
/* Place the three children explicitly. A hidden element is not a grid item, so
   when a single-photo project hides the arrows the photo would otherwise
   auto-flow into the 56px arrow column and render 56px wide. */
.lb-stage > [data-lb-prev] { grid-column: 1 }
.lb-stage > div { grid-column: 2 }
.lb-stage > [data-lb-next] { grid-column: 3 }

/* One photo means no arrows, so the picture takes the full width instead of
   leaving two empty gutters — worth 88px of a phone screen. */
.lb.is-single .lb-stage { grid-template-columns: minmax(0, 1fr) }
.lb.is-single .lb-stage > div { grid-column: 1 }

/* ---------- Scroll reveal ---------- */

.reveal { opacity: 0; transform: translateY(18px) }
.reveal.is-visible { opacity: 1; transform: none }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto }
  .reveal { opacity: 1; transform: none; transition: none }
  .zoom img, .card-lift, .quote-dark, .quote-light { transition: none }
  .card-lift:hover, .quote-dark:hover, .quote-light:hover, .zoom:hover img { transform: none }
}

/* ---------- Responsive ---------- */

@media (max-width: 820px) {
  .ht-nav-links { display: none !important }
  .ht-burger { display: flex !important }
  .ht-mobile-menu.is-open { display: flex !important }
  .ht-topbar-right { display: none !important }
  section { padding-left: 16px !important; padding-right: 16px !important }
  .ht-hero { padding: 16px 16px 40px !important }
  .ht-form { grid-template-columns: minmax(0, 1fr) !important; padding: 20px !important }
  .ht-form > * { grid-column: auto !important }
  .ht-section { padding-top: 56px !important; padding-bottom: 56px !important }
  .lb-stage { grid-template-columns: 44px minmax(0, 1fr) 44px }
}

@media (max-width: 480px) {
  .ht-logo { height: 56px !important }
  h1 { font-size: 36px !important }
}
