@font-face {
  font-family: 'Calibri Light Local';
  src: local('Calibri Light'), local('Calibri-Light');
  font-style: normal;
  font-weight: 300;
}
@font-face {
  font-family: 'Source Sans 3';
  src: url('/fonts/source-sans-3-light.woff2') format('woff2');
  font-style: normal;
  font-weight: 300;
  font-display: swap;
}
:root {
  --paper: #f5f3ed;
  --ink: #232720;
  --subtle: #51594d;
  --rule: #cbc9be;
  --green: #26352b;
  --typeface: 'Calibri Light Local', 'Calibri Light', 'Source Sans 3', sans-serif;
  --side: clamp(1.25rem, 5vw, 5.25rem);
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 300 1rem/1.6 var(--typeface); }
h1, h2, h3, p, figure { margin: 0; }
h1, h2, h3 { font-weight: inherit; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; }
img { display: block; width: 100%; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid #87603a; outline-offset: 5px; }
.skip { position: fixed; top: .75rem; left: 1rem; z-index: 3; background: var(--paper); padding: .5rem 1rem; transform: translateY(-180%); }
.skip:focus { transform: none; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; clip-path: inset(50%); overflow: hidden; white-space: nowrap; }
.wrap { padding-inline: var(--side); max-width: 100rem; margin-inline: auto; }
.masthead { min-height: 5.4rem; display: flex; justify-content: space-between; gap: 1rem 2rem; align-items: center; padding: 1.15rem var(--side); border-bottom: 1px solid var(--rule); }
.wordmark { line-height: 1.17; letter-spacing: .1em; text-transform: uppercase; display: inline-block; font-size: .91rem; }
.wordmark span { display: block; margin-top: .25rem; font-size: .79rem; letter-spacing: .18em; }
.masthead .wordmark { font-size: 1.092rem; }
.masthead .wordmark span { font-size: .948rem; }
nav { display: flex; align-items: center; flex-wrap: wrap; gap: .55rem clamp(1rem, 3.2vw, 3.25rem); }
nav a { font-size: .9rem; white-space: nowrap; }
nav a:hover, address a:hover { text-decoration: underline; text-underline-offset: .25em; }
.contact-link { border: 1px solid var(--rule); padding: .55rem 1.15rem; }
.hero { display: grid; grid-template-columns: minmax(0, .88fr) minmax(0, 1.32fr); max-width: 105rem; margin: auto; border-bottom: 1px solid var(--rule); }
.hero-copy { display: flex; align-items: flex-start; justify-content: center; flex-direction: column; padding: clamp(2.6rem, 6vw, 7rem) clamp(1.25rem, 4vw, 4rem) clamp(2.6rem, 6vw, 7rem) var(--side); }
.label { color: var(--subtle); text-transform: uppercase; letter-spacing: .14em; font-size: .78rem; }
h1 { margin: 1.15rem 0 1.45rem; font-size: clamp(2.68rem, 5.36vw, 6.08rem); line-height: .96; letter-spacing: -.045em; }
.intro { max-width: 29rem; color: var(--subtle); font-size: clamp(1rem, 1.27vw, 1.21rem); line-height: 1.55; }
.button { background: var(--green); color: var(--paper); margin-top: 1.85rem; padding: .78rem 1.25rem; font-size: .92rem; }
.button:hover { background: #435443; }
.hero-figure { display: grid; grid-template-rows: 1fr auto; min-width: 0; background: #eae8df; }
.hero-figure picture { display: block; position: relative; min-height: clamp(29rem, 41vw, 47rem); }
.hero-figure img { position: absolute; height: 100%; object-fit: cover; object-position: center; }
figcaption { font-size: .82rem; color: var(--subtle); }
.hero-figure figcaption { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .2rem 1rem; padding: .62rem 1.2rem; }
.projects, .environmental-design { padding-block: clamp(3.3rem, 7vw, 7rem); }
.section-head { display: flex; align-items: flex-end; justify-content: space-between; flex-wrap: wrap; gap: 1.3rem 2rem; margin-bottom: 1.8rem; }
h2 { font-size: clamp(2.7rem, 5.2vw, 5.5rem); letter-spacing: -.04em; line-height: 1; }
#projects-title, #practice-title, .footer-main h2 { font-size: clamp(2.16rem, 4.16vw, 4.4rem); }
.filters { display: flex; gap: .35rem; flex-wrap: wrap; }
.filters button, .dialog-toolbar button { background: transparent; padding: .45rem .8rem; border: 1px solid var(--rule); font-size: .88rem; }
.filters button:hover, .dialog-toolbar button:hover { border-color: var(--ink); }
.filters button[aria-pressed="true"] { background: var(--green); color: var(--paper); border-color: var(--green); }
.project-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.75rem clamp(1rem, 2.25vw, 2.5rem); }
.card { border-bottom: 1px solid var(--rule); }
.card a { display: block; }
.card img { aspect-ratio: 1.36; object-fit: cover; background: #dfded4; transition: filter .2s ease; }
.card a:hover img { filter: brightness(.87); }
.card a:hover h3 { text-decoration: underline; text-underline-offset: .16em; }
.card-text { padding: .8rem 0 1rem; }
.card-text h3 { font-size: clamp(1.34rem, 2.1vw, 2rem); line-height: 1.13; }
.card-text span { color: var(--subtle); display: block; font-size: .88rem; margin-top: .35rem; }
.text-link { display: inline-block; text-decoration: underline; text-underline-offset: .28em; }
.text-link:hover { text-decoration-thickness: 2px; }
.archive-link { margin-top: 2rem; }
.practice { background: #e9e9df; }
.split { display: grid; grid-template-columns: 1.05fr .95fr; align-items: center; gap: 2rem clamp(2rem, 7vw, 8rem); padding-block: clamp(3.3rem, 8vw, 8rem); }
.split .label, .footer-main .label { margin-bottom: 1rem; }
.prose { max-width: 34rem; }
.prose p { margin-bottom: .95rem; }
.prose .text-link { margin-top: .4rem; }
.environmental-design { display: grid; grid-template-columns: 1.05fr .95fr; align-items: center; gap: 2rem clamp(2rem, 7vw, 8rem); }
.environmental-design img { max-height: 34rem; aspect-ratio: 1.2; object-fit: cover; }
.environmental-design figcaption { margin-top: .5rem; }
.environmental-design h2 { margin-bottom: 1.4rem; }
footer { background: var(--paper); border-top: 1px solid var(--rule); }
.footer-main { display: grid; grid-template-columns: 1.05fr .95fr; align-items: end; gap: 2rem clamp(2rem, 7vw, 8rem); padding-block: clamp(3.2rem, 7vw, 6.5rem); }
address { display: grid; justify-items: start; font-style: normal; gap: .3rem; padding-bottom: .25rem; }
address .email { font-size: clamp(1.1rem, 2.3vw, 1.6rem); margin-bottom: .35rem; }
.footer-bottom { border-top: 1px solid var(--rule); display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding-block: 1.4rem; }
dialog { width: min(58rem, calc(100% - 1.6rem)); max-height: 90dvh; padding: 0; border: 1px solid var(--rule); background: var(--paper); color: var(--ink); }
dialog::backdrop { background: #18211cbb; }
body:has(#project-dialog[open]) { overflow: hidden; }
.dialog-toolbar { position: sticky; top: 0; display: flex; justify-content: flex-end; background: var(--paper); padding: .7rem clamp(1rem, 4vw, 2rem); border-bottom: 1px solid var(--rule); }
.dialog-toolbar span { margin-left: .4rem; }
.dialog-content { padding: clamp(1rem, 4vw, 2rem); }
.dialog-content h2 { margin: .45rem 0 .85rem; }
#detail-description { max-width: 47rem; }
#detail-gallery { display: grid; gap: 1.1rem; margin-top: 1.4rem; }
#detail-gallery img { max-height: 70dvh; object-fit: contain; background: #eae8df; }
#detail-gallery figcaption { padding-top: .35rem; }
@media (max-width: 850px) {
  .project-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 700px) {
  .masthead { align-items: flex-start; flex-direction: column; }
  nav { gap: .45rem 1.15rem; }
  .contact-link { padding: 0; border: 0; }
  .hero, .split, .environmental-design, .footer-main { grid-template-columns: 1fr; }
  .hero-figure picture { min-height: 0; aspect-ratio: 1.25; }
  .environmental-design figure { order: 2; }
}
@media (max-width: 465px) {
  .project-grid { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; }
}
.hero-figure img { object-position: 50% 59%; }
.card[data-category="residential"] img[src*="laois-detail"] { object-position: 50% 65%; }

.chat-launcher, #practice-chat {
  position: fixed;
  inset: auto max(.85rem, env(safe-area-inset-right)) max(.85rem, env(safe-area-inset-bottom)) auto;
  z-index: 2;
  margin: 0;
  box-shadow: 0 2px 12px #242b261a;
}
.chat-launcher {
  transform: scale(1.2);
  transform-origin: bottom right;
  min-height: 2.5rem;
  padding: .35rem .75rem;
  border: 1px solid var(--rule);
  border-radius: .25rem;
  background: var(--paper);
  color: var(--ink);
  font-size: .875rem;
}
.chat-launcher:hover { background: var(--ink); color: var(--paper); }
.chat-launcher[aria-expanded="true"] { visibility: hidden; }
#practice-chat {
  width: min(22rem, calc(100% - 1.7rem));
  max-height: calc(100dvh - 1.7rem);
  border-radius: .4rem;
  overflow: auto;
}
.chat-heading { display: flex; justify-content: space-between; align-items: center; gap: .75rem; padding: .45rem .8rem 0; }
.chat-heading h2 { font-size: 1.2rem; }
.chat-close { min-height: 2rem; border: 0; background: transparent; padding: .25rem .25rem .25rem .5rem; font-size: .875rem; }
.chat-close:hover { text-decoration: underline; }
.chat-note { padding: .15rem .8rem .5rem; font-size: .875rem; line-height: 1.35; }
#chat-frame:empty { display: none; }
#chat-frame openai-chatkit { display: block; width: 100%; height: min(22rem, 61dvh); }

.hero-copy .intro + .intro { margin-top: .55rem; }
#detail-project-link { margin-top: .65rem; }
.page-intro { padding-block: clamp(2.4rem, 6vw, 6rem) clamp(2.2rem, 4vw, 4rem); }
.page-intro h1 { margin: .55rem 0 1rem; font-size: clamp(2.8rem, 7vw, 6rem); }
.page-intro p { max-width: 46rem; }
.page-intro .intro { max-width: 42rem; }
.page-body { padding-bottom: clamp(3rem, 7vw, 6rem); }
.page-body h2 { font-size: clamp(1.9rem, 4vw, 3.2rem); margin-bottom: .85rem; }
.page-body p + p { margin-top: .65rem; }
.page-copy { max-width: 47rem; }
.page-copy + .page-copy, .archive-section + .archive-section { margin-top: clamp(2rem, 5vw, 4rem); }
.breadcrumbs { margin-bottom: .8rem; }
.breadcrumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: .35rem; padding: 0; margin: 0; }
.breadcrumbs li + li::before { content: '/'; color: var(--subtle); margin-right: .35rem; }
.breadcrumbs a, .page-body .prose a { text-decoration: underline; text-underline-offset: .22em; }
.portfolio-figure { margin: 0 0 1.65rem; }
.portfolio-figure img { width: auto; max-width: 100%; max-height: 43rem; }
.portfolio-figure figcaption { margin-top: .4rem; }
.archive-description { margin-bottom: 1.2rem; }
.homepage-archive { padding-bottom: clamp(3rem, 7vw, 6rem); }
.homepage-archive h2 { font-size: clamp(1.9rem, 4vw, 3.2rem); margin-bottom: .85rem; }
.archive-section .card { align-content: end; }
.archive-section .card img { width: 100%; }
.service-principal { margin-top: clamp(2rem, 5vw, 4rem); }
.service-links { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 16rem), 1fr)); gap: 1.2rem; }
.service-links article { border-top: 1px solid var(--rule); padding: 1rem 0; }
.service-links h2 { margin-bottom: .55rem; }
.service-links h2 a:hover { text-decoration: underline; text-underline-offset: .2em; }
.faq { max-width: 44rem; margin: 0; }
.faq dt { font-size: 1.2rem; margin-top: 1.15rem; }
.faq dd { margin: .2rem 0 0; }
.page-links { display: flex; flex-wrap: wrap; gap: .8rem 1.4rem; margin-top: 1.65rem; }
