:root {
  --bg: #080a0b;
  --surface: #111416;
  --surface-soft: #171a1d;
  --gold: #f4a20a;
  --gold-soft: #c77d08;
  --text: #f3f0e9;
  --muted: #b9b8b4;
  --line: rgba(244, 162, 10, 0.42);
  --shadow: 0 18px 42px rgba(0, 0, 0, 0.34);
  --radius: 12px;
  --shell: min(1180px, calc(100% - 40px));
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; overflow-x: hidden; background: var(--bg); color: var(--text); font-family: "Segoe UI", Arial, sans-serif; line-height: 1.55; }
img { display: block; max-width: 100%; }
a { color: inherit; }

.site-header { background: #050607; border-bottom: 1px solid rgba(244, 162, 10, 0.24); }
.header-inner, .footer-inner { width: var(--shell); margin: 0 auto; }
.header-inner { min-height: 76px; display: flex; align-items: center; justify-content: space-between; gap: 28px; }
.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; }
.brand img { width: 48px; height: 48px; object-fit: contain; }
.brand span, .footer-brand { display: grid; }
.brand strong, .footer-brand strong { font-size: 1.55rem; letter-spacing: 0.06em; }
.brand small, .footer-brand small { color: var(--gold); font-size: 0.68rem; letter-spacing: 0.09em; text-transform: uppercase; }
.main-menu { display: flex; align-items: center; margin: 0; padding: 0; list-style: none; }
.main-menu a { position: relative; display: block; padding: 28px 0 24px; font-size: 0.89rem; font-weight: 700; text-decoration: none; text-transform: uppercase; }
.main-menu a::after { content: ""; position: absolute; right: 0; bottom: 16px; left: 0; height: 2px; background: var(--gold); transform: scaleX(0); transition: transform 180ms ease; }
.main-menu a:hover, .main-menu a:focus-visible { color: var(--gold); }
.main-menu a:hover::after, .main-menu a:focus-visible::after { transform: scaleX(1); }

.interior-hero { position: relative; isolation: isolate; min-height: 310px; display: grid; place-items: center; overflow: hidden; border-bottom: 1px solid var(--line); background: url("design/logos/ta1ztc-plan.jpg") center 48% / cover no-repeat; }
.interior-hero::before { content: ""; position: absolute; z-index: -1; inset: 0; background: linear-gradient(90deg, rgba(4,5,6,.9), rgba(4,5,6,.58) 52%, rgba(4,5,6,.88)), linear-gradient(0deg, rgba(4,5,6,.92), transparent 65%); }
.interior-hero::after { content: ""; position: absolute; z-index: -1; width: min(760px, 90%); height: 120px; border-radius: 50%; background: rgba(244,162,10,.08); filter: blur(58px); }
.interior-hero-inner { width: var(--shell); padding: 54px 0; text-align: center; text-shadow: 0 2px 16px #000; }
.kicker { margin: 0 0 8px; color: var(--gold); font-size: .78rem; font-weight: 800; letter-spacing: .18em; text-transform: uppercase; }
.interior-hero h1 { margin: 0; color: var(--text); font-size: clamp(2.25rem, 5vw, 4.2rem); line-height: 1.05; letter-spacing: .06em; text-transform: uppercase; }
.interior-hero-inner > p:last-child { max-width: 760px; margin: 18px auto 0; color: #d5d1c8; font-size: 1.04rem; }
.detail-hero { min-height: 360px; }
.breadcrumb { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-bottom: 28px; color: var(--muted); font-size: .82rem; }
.breadcrumb a { color: var(--gold); text-decoration: none; }
.breadcrumb a:hover, .breadcrumb a:focus-visible { filter: brightness(1.18); }

.page-shell { width: var(--shell); margin: 0 auto; padding: 48px 0 76px; }
.section-heading { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 20px; margin-bottom: 28px; }
.section-heading span { height: 1px; background: linear-gradient(90deg, transparent, var(--gold)); }
.section-heading span:last-child { background: linear-gradient(90deg, var(--gold), transparent); }
.section-heading strong, .section-heading h2 { margin: 0; color: #d5d1c8; font-size: 1.08rem; letter-spacing: .18em; text-align: center; text-transform: uppercase; }

.project-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; }
.projects-category-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; }
.projects-category-card { display: flex; min-width: 0; min-height: 435px; flex-direction: column; overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius); background: linear-gradient(145deg, rgba(24,27,29,.97), rgba(12,14,15,.98)); box-shadow: var(--shadow); color: inherit; text-decoration: none; transition: transform 200ms ease, border-color 200ms ease, box-shadow 200ms ease, filter 200ms ease; }
.projects-category-card:hover, .projects-category-card:focus-visible { transform: translateY(-6px); border-color: rgba(244,162,10,.86); box-shadow: 0 24px 48px rgba(0,0,0,.46), 0 0 18px rgba(244,162,10,.12); filter: brightness(1.03); }
.projects-category-card:focus-visible { outline: 3px solid var(--gold); outline-offset: 4px; }
.projects-category-card:active { transform: translateY(-1px) scale(.995); }
.projects-category-media { display: block; overflow: hidden; background: var(--surface); }
.projects-category-media img { width: 100%; height: 230px; object-fit: cover; transition: transform 240ms ease; }
.projects-category-card:hover .projects-category-media img, .projects-category-card:focus-visible .projects-category-media img { transform: scale(1.035); }
.projects-category-body { display: flex; min-height: 205px; flex: 1; flex-direction: column; align-items: flex-start; padding: 22px; }
.projects-category-body strong { margin: 0 0 8px; color: var(--gold); font-size: 1rem; text-transform: uppercase; }
.projects-category-description { color: var(--muted); font-size: .91rem; }
.projects-category-button { display: inline-flex; margin-top: auto; padding: 9px 14px; border: 1px solid var(--gold); border-radius: 5px; color: var(--gold); font-size: .77rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; transition: background 180ms ease, color 180ms ease; }
.projects-category-card:hover .projects-category-button, .projects-category-card:focus-visible .projects-category-button { background: var(--gold); color: #111; }
.project-card, .related-card, .project-lead, .article-content, .materials-box { border: 1px solid var(--line); border-radius: var(--radius); background: linear-gradient(145deg, rgba(24,27,29,.97), rgba(12,14,15,.98)); box-shadow: var(--shadow); }
.project-card { min-width: 0; overflow: hidden; transition: transform 200ms ease, border-color 200ms ease, box-shadow 200ms ease, filter 200ms ease; }
.project-card:hover { transform: translateY(-6px); border-color: rgba(244,162,10,.86); box-shadow: 0 24px 48px rgba(0,0,0,.46), 0 0 18px rgba(244,162,10,.12); filter: brightness(1.03); }
.card-media { overflow: hidden; background: var(--surface); }
.card-media img { width: 100%; height: 230px; object-fit: cover; transition: transform 240ms ease; }
.project-card:hover .card-media img { transform: scale(1.035); }
.card-body { display: flex; min-height: 205px; flex-direction: column; align-items: flex-start; padding: 22px; }
.card-body h2 { margin: 0 0 8px; color: var(--gold); font-size: 1rem; text-transform: uppercase; }
.card-body p { margin: 0; color: var(--muted); font-size: .91rem; }
.button { display: inline-flex; margin-top: auto; padding: 9px 14px; border: 1px solid var(--gold); border-radius: 5px; color: var(--gold); font-size: .77rem; font-weight: 800; letter-spacing: .06em; text-decoration: none; text-transform: uppercase; transition: background 180ms ease, color 180ms ease; }
.button:hover, .button:focus-visible { background: var(--gold); color: #111; }

.detail-shell { padding-top: 32px; }
.back-link { display: inline-flex; min-height: 44px; align-items: center; margin-bottom: 20px; color: var(--gold); font-weight: 750; text-decoration: none; transition: transform 180ms ease, filter 180ms ease; }
.back-link:hover, .back-link:focus-visible { transform: translateX(-3px); filter: brightness(1.16); }
.project-overview { display: grid; grid-template-columns: minmax(0, .8fr) minmax(420px, 1.2fr); align-items: stretch; gap: 24px; margin-bottom: 28px; }
.project-overview .project-facts, .project-overview .materials-box { margin: 0; }
.project-overview .project-facts { align-content: center; padding: 24px 30px; border: 1px solid var(--line); border-radius: var(--radius); background: linear-gradient(145deg, rgba(24,27,29,.97), rgba(12,14,15,.98)); box-shadow: var(--shadow); }
.project-overview .materials-box { position: static; display: grid; grid-template-columns: 150px 1fr; align-items: start; gap: 12px 24px; }
.project-overview .materials-box .kicker { grid-column: 1 / -1; }
.project-overview .materials-box ul { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 18px; }
.project-lead { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(320px, .75fr); overflow: hidden; }
.lead-image { min-height: 440px; overflow: hidden; background: #070809; }
.lead-image img { width: 100%; height: 100%; object-fit: contain; }
.lead-copy { align-self: center; padding: 36px; }
.lead-copy h2 { margin: 0 0 14px; color: var(--gold); font-size: clamp(1.55rem, 3vw, 2.35rem); text-transform: uppercase; }
.lead-copy > p:not(.kicker) { color: var(--muted); }
.project-facts { display: grid; gap: 0; margin: 26px 0 0; border-top: 1px solid rgba(244,162,10,.22); }
.project-facts div { display: grid; grid-template-columns: 120px 1fr; gap: 16px; padding: 12px 0; border-bottom: 1px solid rgba(244,162,10,.14); }
.project-facts dt { color: var(--muted); font-size: .75rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.project-facts dd { margin: 0; color: var(--text); font-size: .88rem; }

.content-layout { display: grid; grid-template-columns: minmax(0, 1fr) 340px; align-items: start; gap: 24px; margin-top: 28px; }
.article-content { padding: clamp(24px, 4vw, 42px); }
.article-flow { width: min(100%, 980px); margin: 0 auto; }
.article-flow p { white-space: pre-line; }
.page-balun-149 .article-flow > p:nth-last-of-type(-n+4) { margin-top: 32px; color: var(--gold); font-weight: 800; letter-spacing: .05em; text-transform: uppercase; }
.article-content h2, .materials-box h2 { margin: 0 0 18px; color: var(--gold); font-size: 1.22rem; letter-spacing: .08em; text-transform: uppercase; }
.article-content p { color: var(--muted); }
.article-image { display: block; margin: 28px 0; overflow: hidden; border: 1px solid var(--line); border-radius: 8px; background: #070809; }
.article-image img { width: 100%; max-height: 540px; object-fit: contain; transition: filter 180ms ease; }
.measurement-image img { max-height: 700px; }
.article-image:hover img, .article-image:focus-visible img { filter: brightness(1.08); }
.materials-box { position: sticky; top: 24px; padding: 28px; }
.materials-box ul { margin: 0; padding: 0; list-style: none; }
.materials-box li { position: relative; padding: 10px 0 10px 18px; border-bottom: 1px solid rgba(244,162,10,.13); color: var(--muted); font-size: .88rem; }
.materials-box li::before { content: ""; position: absolute; top: 18px; left: 0; width: 6px; height: 6px; border-radius: 50%; background: var(--gold); box-shadow: 0 0 8px rgba(244,162,10,.45); }

.gallery-section, .related-section { padding-top: 48px; }
.detail-gallery { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.detail-gallery a { display: grid; min-height: 210px; place-items: center; overflow: hidden; border: 1px solid var(--line); border-radius: 8px; background: var(--surface); }
.detail-gallery img { width: 100%; height: 230px; object-fit: contain; transition: transform 200ms ease, filter 200ms ease; }
.detail-gallery a:hover img, .detail-gallery a:focus-visible img { transform: scale(1.025); filter: brightness(1.08); }
.related-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.related-card { display: grid; grid-template-columns: 120px minmax(0, 1fr); overflow: hidden; transition: transform 180ms ease, border-color 180ms ease; }
.related-card:hover { transform: translateY(-4px); border-color: var(--gold); }
.related-card > img { width: 120px; height: 132px; object-fit: cover; }
.related-card div { display: flex; min-width: 0; flex-direction: column; align-items: flex-start; justify-content: center; padding: 16px; }
.related-card h3 { margin: 0 0 12px; color: var(--text); font-size: .88rem; text-transform: uppercase; }
.related-card a { color: var(--gold); font-size: .75rem; font-weight: 800; text-decoration: none; text-transform: uppercase; }

.site-footer { background: radial-gradient(circle at 50% 0, rgba(244,162,10,.08), transparent 38%), linear-gradient(180deg, #090b0c, #050607); }
.footer-inner { min-height: 190px; padding: 0 0 28px; }
.footer-divider { width: 100%; height: 1px; margin-bottom: 26px; background: linear-gradient(90deg, transparent, var(--gold-soft) 22%, var(--gold) 50%, var(--gold-soft) 78%, transparent); box-shadow: 0 0 18px rgba(244,162,10,.26); }
.footer-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px 28px; padding: 22px 26px; border-radius: var(--radius); background: linear-gradient(145deg, rgba(24,27,29,.76), rgba(12,14,15,.84)); box-shadow: var(--shadow); }
.footer-links a { display: inline-flex; align-items: center; gap: 9px; padding: 7px 0; color: var(--muted); font-size: .83rem; font-weight: 700; text-decoration: none; text-transform: uppercase; transition: color 180ms ease, filter 180ms ease, transform 180ms ease; }
.footer-links a:hover, .footer-links a:focus-visible { color: var(--gold); filter: brightness(1.12); transform: translateY(-2px); }
.footer-links img { width: 24px; height: 24px; object-fit: contain; }
.footer-lower { display: flex; align-items: center; justify-content: space-between; gap: 28px; margin-top: 22px; padding: 22px 8px 0; border-top: 1px solid rgba(244,162,10,.14); }
.footer-mark { display: flex; align-items: center; justify-content: flex-end; gap: 14px; }
.footer-mark p { margin: 0; color: var(--muted); font-size: .83rem; font-family: "Segoe Script", "Bradley Hand", "Brush Script MT", "Apple Chancery", cursive; font-style: italic; text-align: right; }
.footer-mark img { width: 66px; height: 66px; object-fit: contain; }

.lightbox { display: none; position: fixed; z-index: 9999; inset: 0; align-items: center; justify-content: center; padding: 54px 20px 20px; overflow: auto; background: rgba(0,0,0,.93); }
.lightbox.is-open { display: flex; }
.lightbox img { width: auto; height: auto; max-width: min(95vw, 1400px); max-height: calc(100vh - 74px); object-fit: contain; border: 1px solid var(--line); border-radius: 8px; box-shadow: 0 20px 70px rgba(0,0,0,.7); }
.lightbox-close { position: fixed; z-index: 1; top: 12px; right: 18px; width: 40px; height: 40px; padding: 0; border: 1px solid var(--gold); border-radius: 50%; background: rgba(8,10,11,.9); color: var(--gold); font: inherit; font-size: 1.75rem; line-height: 1; cursor: pointer; transition: background 180ms ease, color 180ms ease, transform 180ms ease; }
.lightbox-close:hover, .lightbox-close:focus-visible { background: var(--gold); color: #111; transform: scale(1.04); outline: none; }

@media (max-width: 980px) {
  .project-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .projects-category-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .project-lead { grid-template-columns: 1fr; }
  .lead-image { min-height: 400px; }
  .content-layout { grid-template-columns: 1fr; }
  .project-overview { grid-template-columns: 1fr; }
  .materials-box { position: static; }
  .related-grid { grid-template-columns: 1fr; }
}

@media (max-width: 720px) {
  :root { --shell: min(100% - 28px, 620px); }
  .header-inner { min-height: auto; flex-direction: column; align-items: stretch; padding: 13px 0 0; }
  .brand { align-self: flex-start; }
  .main-menu { justify-content: flex-start; }
  .main-menu a { padding: 12px 0 17px; font-size: .75rem; }
  .main-menu a::after { bottom: 9px; }
  .interior-hero { min-height: 270px; background-image: url("design/logos/ta1ztc-plan-mobile.jpg"); background-position: 50% center; }
  .detail-hero { min-height: 310px; }
  .interior-hero-inner { padding: 40px 0; }
  .interior-hero h1 { font-size: clamp(2rem, 11vw, 3rem); }
  .breadcrumb { margin-bottom: 20px; }
  .page-shell { padding: 36px 0 56px; }
  .project-grid, .detail-gallery { grid-template-columns: 1fr; }
  .projects-category-grid { grid-template-columns: 1fr; }
  .projects-category-card { min-height: 0; }
  .projects-category-media img { height: auto; max-height: 340px; object-fit: contain; }
  .projects-category-body { min-height: 180px; }
  .card-media img { height: auto; max-height: 320px; object-fit: contain; }
  .card-body { min-height: 180px; }
  .lead-image { min-height: auto; }
  .lead-image img { height: auto; max-height: 520px; }
  .lead-copy { padding: 26px 22px; }
  .project-facts div { grid-template-columns: 100px 1fr; }
  .article-content, .materials-box { padding: 24px 20px; }
  .project-overview .materials-box { display: block; }
  .project-overview .materials-box .kicker { margin-bottom: 8px; }
  .project-overview .materials-box ul { grid-template-columns: 1fr; }
  .detail-gallery a { min-height: 0; }
  .detail-gallery img { height: auto; max-height: 420px; }
  .related-card { grid-template-columns: 104px minmax(0, 1fr); }
  .related-card > img { width: 104px; height: 120px; }
  .footer-links { gap: 10px 22px; padding: 20px; }
  .footer-lower { flex-direction: column; text-align: center; }
  .footer-mark { justify-content: center; }
  .footer-mark p { text-align: center; }
}

@media (max-width: 440px) {
  .brand img { width: 42px; height: 42px; }
  .brand strong { font-size: 1.3rem; }
  .section-heading { gap: 10px; }
  .section-heading strong, .section-heading h2 { font-size: .92rem; letter-spacing: .1em; }
  .project-facts div { grid-template-columns: 1fr; gap: 4px; }
  .related-card { grid-template-columns: 88px minmax(0, 1fr); }
  .related-card > img { width: 88px; height: 112px; }
  .footer-links { flex-direction: column; align-items: stretch; gap: 4px; padding: 18px 22px; }
  .footer-mark { flex-direction: column-reverse; }
}

@media (min-width: 769px) {
  .project-overview { grid-template-columns: 1fr; gap: 12px; margin-bottom: 22px; }
  .project-overview .project-facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); align-content: stretch; padding: 0; overflow: hidden; }
  .project-overview .project-facts div { display: grid; grid-template-columns: 1fr; gap: 3px; padding: 10px 16px; border-right: 1px solid rgba(244,162,10,.18); border-bottom: 0; }
  .project-overview .project-facts div:last-child { border-right: 0; }
  .project-overview .project-facts dt { font-size: .65rem; letter-spacing: .07em; }
  .project-overview .project-facts dd { font-size: .82rem; line-height: 1.35; }
  .project-overview .materials-box { display: grid; grid-template-columns: 110px 1fr; gap: 6px 18px; padding: 16px 20px; }
  .project-overview .materials-box .kicker { grid-column: 1; align-self: start; margin-top: 8px; font-size: .68rem; }
  .project-overview .materials-box ul { grid-column: 2; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 18px; }
  .project-overview .materials-box li { padding: 5px 0 5px 14px; font-size: .8rem; line-height: 1.35; }
  .project-overview .materials-box li::before { top: 11px; width: 5px; height: 5px; }
}

@media (max-width: 768px) {
  .project-overview .materials-box { display: block; padding: 20px; }
  .project-overview .materials-box .kicker { margin-bottom: 8px; }
  .project-overview .materials-box ul { display: grid; grid-template-columns: 1fr; }
}

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