/* ---------- HERO ---------- */
.hero {
  position: relative;
  overflow: hidden;
  display: grid;
}
.hero-media {
  grid-area: 1 / 1;
  position: relative;
  width: 100%;
  min-height: 50vh;
  overflow: hidden;
}
.hero-photo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 25%;
  display: block;
}
.hero-scrim {
  position: absolute;
  inset: 0;
  background:
  linear-gradient(180deg, rgba(10,8,5,0.45) 0%, rgba(10,8,5,0.05) 30%, rgba(10,8,5,0.15) 55%, rgba(10,8,5,0.8) 100%);
}
.hero-overlay {
  position: relative;
  grid-area: 1 / 1;
  display: flex;
  align-items: center;
}
.hero-inner {
  text-align: center;
  max-width: 1280px;
  margin: 0 auto;
  width: 100%;
  padding: 40px 32px;
}
.hero-eyebrow {
  font-size: 13.5px;
  color: #FFFFFF;
  letter-spacing: 0.04em;
  margin-bottom: 20px;
}
.hero h1 {
  font-family: var(--font-serif);
  font-weight: 700;
  font-size: clamp(30px, 4.6vw, 50px);
  line-height: 1.45;
  margin: 0 0 22px;
  color: #FFFFFF;
  text-shadow: 0 2px 18px rgba(0,0,0,0.35);
}
.hero-ctas {
  display: flex;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
}
.btn-primary {
  display: inline-block;
  padding: 14px 26px;
  font-size: 14.5px;
  text-decoration: none;
  border: 1px solid #FBF8F2;
}
.btn-primary {
  background: var(--copper);
  border-color: var(--copper);
  color: #FFFFFF;
}
.btn-primary:hover {
  background: var(--copper-bright);
  border-color: var(--copper-bright);
}
@media (max-width: 700px) {
  .hero-media {
    min-height: 600px;
  }
  .hero-inner {
    padding: 36px 24px;
  }
  .hero h1 {
    font-size: clamp(30px, 7vw, 42px);
  }
  .hero-ctas {
    gap: 12px;
  }
  .hero-ctas a {
    padding: 12px 18px;
  }
  .hero-photo {
    object-position: center top;
  }
}
/* ---------- SECTION SHELL ---------- */
section {
  padding: 96px 0;
}
#about, #history, #gallery, #resources {
  padding-top: 45px;
  padding-bottom: 45px;
}
section.alt {
  background: var(--bg-alt);
}
.section-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 24px;
  margin-bottom: 26px;
}
.section-head h2 {
  font-family: var(--font-serif);
  font-size: 30px;
  font-weight: 700;
  margin: 0;
}
.section-head .sub {
  font-size: 14px;
  color: var(--ink-soft);
  white-space: nowrap;
  text-align: right;
}
@media (max-width: 700px) {
  .section-head {
    flex-direction: column;
    align-items: flex-start;
  }
  .section-head .sub {
    text-align: left;
    white-space: normal;
  }
}
/* ---------- ABOUT ---------- */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
}
.about-copy p {
  color: var(--ink-soft);
  font-size: 15.5px;
  margin: 0 0 20px;
}
.about-copy strong {
  color: var(--ink);
  font-weight: 500;
}
.info-table {
  border-top: 0;
  font-size: 14.5px;
}
.info-row {
  display: grid;
  grid-template-columns: 120px 1fr;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
  gap: 12px;
}
.info-row:last-child {
  border-bottom: 0;
}
@media (min-width: 801px) {
  #about .info-table {
    margin-top: 65px;
  }
}
.info-row .k {
  color: var(--ink-soft);
}
.info-row .v {
  color: var(--ink);
}
.badges {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 24px;
}
.badge {
  width: 170px;
  text-align: center;
  font-size: 12.5px;
  padding: 7px 13px;
  border: 1px solid var(--patina);
  color: var(--patina-deep, var(--patina));
}
.history-photo {
  margin-top: 36px;
  display: flex;
  gap: 16px;
  align-items: flex-end;
}
.history-photo img {
  width: 140px;
  height: auto;
  display: block;
  filter: sepia(0.25) contrast(1.02);
}
.history-photo .cap {
  font-size: 12.5px;
  color: var(--ink-soft);
  line-height: 1.7;
}
@media (max-width: 700px) {
  .history-photo {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px 16px;
  }
  .history-photo img {
    width: 140px;
    max-width: 100%;
  }
  .history-photo .cap {
    grid-column: 1 / -1;
  }
}
@media (max-width: 800px) {
  .about-grid {
    grid-template-columns: 1fr;
    gap: 36px;
  }
}
/* ---------- TIMELINE ---------- */
.timeline {
  position: relative;
  margin-top: 8px;
}
.timeline::before {
  content: "";
  position: absolute;
  left: 108px;
  top: 6px;
  bottom: 6px;
  width: 1px;
  background: var(--line);
}
.t-item {
  display: grid;
  grid-template-columns: 96px 28px 1fr;
  gap: 0;
  padding: 22px 0;
}
.t-item .t-date {
  font-family: var(--font-serif);
  font-size: 14px;
  color: var(--ink-soft);
  padding-top: 2px;
}
.t-item .t-dot {
  display: flex;
  justify-content: center;
}
.t-item .t-dot span {
  width: 9px;
  height: 9px;
  background: var(--copper);
  border-radius: 50%;
  margin-top: 6px;
}
.t-item .t-body {
  font-size: 15.5px;
  padding-left: 4px;
  color: var(--ink);
}
.t-item .t-body .t-highlight {
  color: var(--copper);
  font-weight: 500;
}
@media (max-width: 640px) {
  .timeline::before {
    left: 62px;
  }
  .t-item {
    grid-template-columns: 50px 28px 1fr;
  }
  .t-item .t-date {
    font-size: 12px;
  }
}
/* ---------- GALLERY ---------- */
.gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.g-card {
  position: relative;
  display: block;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  text-decoration: none;
  color: var(--ink);
  background: var(--card-bg);
}
.g-photo {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  transition: transform .5s ease;
}
.g-card:hover .g-photo {
  transform: scale(1.06);
}
.g-overlay {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 22px 22px 18px;
  background: linear-gradient(to top, rgba(10,8,5,0.78) 0%, rgba(10,8,5,0.32) 55%, transparent 100%);
}
.g-card .g-title {
  font-family: var(--font-serif);
  font-size: 17px;
  font-weight: 700;
  color: #F4EFE2;
  line-height: 1.4;
}
.g-card .g-arrow {
  font-size: 12.5px;
  color: #D9CFB8;
  margin-top: 0;
  line-height: 1.4;
}
@media (max-width: 800px) {
  .gallery {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 520px) {
  .gallery {
    grid-template-columns: 1fr;
  }
}
/* ---------- RESOURCES ---------- */
.res-cols {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 60px;
}
.res-list {
  list-style: none;
  margin: 0;
  padding: 0;
}
.res-list li {
  border-bottom: 1px solid var(--line);
  padding: 16px 0;
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  font-size: 14.5px;
  gap: 16px;
}
.res-list li:last-child, .links-list a:last-child {
  border-bottom: 0;
}
.res-list li .name {
  color: var(--ink);
}
.res-list li .fmt {
  color: var(--ink-soft);
  font-size: 12.5px;
  white-space: nowrap;
}
.links-list a {
  display: block;
  color: var(--ink-soft);
  text-decoration: none;
  font-size: 14px;
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
}
.links-list a:hover {
  color: var(--copper);
}
@media (max-width: 800px) {
  .res-cols {
    grid-template-columns: 1fr;
    gap: 36px;
  }
}
/* ---------- CONTACT / FOOTER ---------- */




@media (max-width: 700px) {
  .hero h1 {
    font-size: clamp(18px, calc((100vw - 48px) / 12), 42px);
  }
  .hero-copy-line {
    white-space: nowrap;
  }

}
.company-map {
  margin-top: 24px;
}
.company-map iframe {
  display: block;
  width: 100%;
  height: 280px;
  border: 0;
}
.res-list a {
  color: inherit;
  text-underline-offset: 4px;
}
.res-list a:hover {
  color: var(--copper);
}
.hero h1 .hero-copy-line {
  display: inline-block;
  white-space: nowrap;
}
.hero-copy-tail {
  display: inline-block;
}
#about .history-photo {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 140px));
  gap: 12px 16px;
  align-items: end;
}
#about .history-photo .cap {
  grid-column: 1 / -1;
  text-align: left;
}
@media (min-width: 701px) {
  .history-caption-break {
    display: none;
  }
  #about .history-photo .cap {
    white-space: nowrap;
  }
}
@media (min-width: 701px) {
  #history .section-head, #gallery .section-head {
    align-items: center;
  }
}
.about-heading {
  font-family:var(--font-serif);
  font-size:28px;
  margin:0 0 26px;
}
.email-link {
  color:inherit;
  text-underline-offset:4px;
}
.photo-karahafu {
  background-image:url('../home/category-karahafu.jpg')
}
.photo-temple {
  background-image:url('../home/category-temple.jpg')
}
.photo-gutters {
  background-image:url('../home/category-gutters.jpg')
}
.photo-metalwork {
  background-image:url('../home/category-metalwork.jpg')
}
.photo-oni {
  background-image:url('../home/category-oni.jpg')
}
.photo-old-days {
  background-image:url('../home/category-old-days.jpg')
}
.resources-heading-row {
  margin-bottom:26px;
}
.resources-heading {
  font-size:24px;
}
.footer-inner {
  display:flex;
  justify-content:space-between;
  width:100%;
  flex-wrap:wrap;
  gap:12px;
}


/* Document downloads share the site's restrained red accent. */
.res-list .fmt:has(a) { display: flex; gap: 8px; }
.res-list .fmt a {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  min-width: 48px;
  min-height: 36px;
  padding: 4px 10px;
  border: 1px solid var(--line);
  color: var(--ink-soft);
  text-decoration: none;
  transition: color .2s, border-color .2s;
}
.res-list .fmt a:hover, .res-list .fmt a:focus-visible {
  color: var(--copper);
  border-color: var(--copper);
}
.res-list a.name { text-decoration: none; }
.res-list a.name::after { content: ' →'; color: var(--copper); white-space: nowrap; }
@media (max-width: 500px) {
  .res-list li { align-items: flex-start; flex-wrap: wrap; gap: 8px 16px; }
  .res-list li .fmt { margin-left: auto; }
}

.resource-open { overflow: hidden; }
.resource-viewer {
  width: min(1100px, 94vw); height: 90vh; height: 90dvh;
  max-width: 94vw; max-height: 90dvh;
  margin: auto; padding: 0; border: 0; background: #fff; color: var(--ink);
}
.resource-viewer[open] { display: flex; flex-direction: column; }
.resource-viewer::backdrop { background: rgba(0,0,0,.72); }
.resource-viewer-bar { padding: 14px 58px 14px 20px; border-bottom: 1px solid var(--line); }
.resource-viewer-bar h2 { font-size: 16px; line-height: 1.5; margin: 0; }
.resource-direct { font-size: 11px; color: var(--ink-soft); }
.resource-close { position: absolute; top: 0; right: 0; width: 44px; height: 44px; border: 0; background: #fff; color: var(--ink); font-size: 28px; cursor: pointer; }
.resource-close:hover { color: var(--copper); }
.resource-frame { display: block; width: 100%; flex: 1; min-height: 0; border: 0; }
