/* hero: flat banner with the typology slideshow (the group site's a54 hero) */
.hero { display: block; position: relative; width: 100%; min-height: 86vh; height: auto;
  background: #1B2838; border-bottom: 1px solid #1B2838; padding: 150px 32px 96px; overflow: hidden; grid-template-columns: none; }
.hero-art { position: absolute; top: 0; right: 0; bottom: 0; width: 78%; }   /* solid navy for the left quarter */
.hero-art .hero-slide.flip { transform: scaleX(-1); }
.hero-art .hero-slide { position: absolute; inset: 0; background-position: right center; background-size: cover;
  background-repeat: no-repeat; opacity: 0; transition: opacity 1.4s ease; }
.hero-art .hero-slide.on { opacity: 1; }
.hero-art::after { content: ""; position: absolute; inset: 0;
  background: linear-gradient(90deg, #1B2838 0%, #1B2838 4%, rgba(27,40,56,0.88) 18%, rgba(27,40,56,0.62) 36%, rgba(27,40,56,0.22) 68%, rgba(27,40,56,0.1) 100%); }
.hero .hero-content { position: relative; z-index: 1; max-width: 1200px; margin: 0 auto; height: auto; padding: 0; display: block; background: none; }
.hero .hero-copy { max-width: 640px; }
.hero .hero-copy .label { color: rgba(255,255,255,0.55); letter-spacing: 3px; margin-bottom: 20px; display: block; }
.hero .hero-copy .label::before { content: "\2726  "; color: #b8934d; }
.hero .hero-copy h1 { font-size: clamp(38px, 5vw, 58px); line-height: 1.1; color: #ffffff; margin: 0 0 22px; letter-spacing: -0.5px; }
.hero .hero-copy h1::after { content: ""; display: block; width: 44px; height: 2px; background: linear-gradient(90deg, #d8bc82, #b8934d); margin-top: 26px; }
.hero .hero-copy p { font-size: 17px; line-height: 1.65; color: rgba(255,255,255,0.8); max-width: 56ch; margin-bottom: 34px; }
.hero .hero-ctas { display: flex; gap: 14px; flex-wrap: wrap; }
.hero .hero-ctas .btn-solid { background: #ffffff; color: #1B2838; border: 1px solid #ffffff; border-radius: 2px; }
.hero .hero-ctas .btn-solid:hover { background: #E8F0F6; }
.hero .hero-ctas .btn-ghost { border: 1px solid rgba(255,255,255,0.55); color: #ffffff; background: transparent; border-radius: 2px; }
.hero .hero-ctas .btn-ghost:hover { border-color: #d8bc82; color: #d8bc82; background: rgba(184,147,77,0.08); }
html, body { overflow-x: clip; }
@media (max-width: 1120px) { .hero { padding-top: 120px; } .hero-art { width: 100%; opacity: 0.5; } }
@media (max-width: 880px) { .nav-links { display: none; } .nav-links.open { display: flex; flex-direction: column; } .nav-inner { min-width: 0; } .nav { max-width: calc(100vw - 20px); } }
@media (prefers-reduced-motion: reduce) { .hero-art .hero-slide { transition: none; } }

/* pill nav */
main { padding-top: 0; }
.nav { position: fixed; top: 14px; left: 50%; transform: translateX(-50%); width: min(1160px, calc(100% - 40px));
  border-radius: 999px; background: rgba(20,31,46,0.74); -webkit-backdrop-filter: blur(12px) saturate(1.05);
  backdrop-filter: blur(12px) saturate(1.05); border: 1px solid rgba(255,255,255,0.12); box-shadow: 0 8px 30px rgba(10,18,28,0.35);
  padding-left: 26px; padding-right: 12px; }
.nav .btn, .nav a.cta, .nav .nav-cta { border-radius: 999px; }
@supports not (backdrop-filter: blur(1px)) { .nav { background: rgba(20,31,46,0.95); } }
@media (max-width: 880px) { .nav { top: 10px; width: calc(100% - 20px); padding-left: 18px; } .nav-links.open { border-radius: 18px; margin-top: 8px; } }

/* gold family, one motif page-wide */
.section-inner > .label::before, .gallery-label::before { content: "\2726  "; color: #b8934d; }

/* phase cards */
#what-we-do .summary-grid { counter-reset: phase; position: relative; display: grid; grid-template-columns: repeat(6, 1fr); gap: 16px; margin-top: 56px; align-items: stretch; }
#what-we-do .summary-cell { counter-increment: phase; position: relative; z-index: 1; background: #ffffff; border: 1px solid #dde1e6; border-radius: 8px;
  padding: 26px 20px 22px; box-shadow: 0 6px 24px rgba(22,38,61,0.09); transition: transform 0.35s ease, box-shadow 0.35s ease; }
#what-we-do .summary-cell:hover { transform: translateY(-8px); box-shadow: 0 16px 38px rgba(22,38,61,0.16); }
#what-we-do .summary-cell::after { content: "0" counter(phase); position: absolute; top: 10px; right: 14px; font-family: Georgia, 'Times New Roman', serif;
  font-size: 34px; line-height: 1; color: rgba(184,147,77,0.32); font-weight: 700; }
#what-we-do .summary-cell.reveal:nth-child(2) { transition-delay: 0.08s; }
#what-we-do .summary-cell.reveal:nth-child(3) { transition-delay: 0.16s; }
#what-we-do .summary-cell.reveal:nth-child(4) { transition-delay: 0.24s; }
#what-we-do .summary-cell.reveal:nth-child(5) { transition-delay: 0.32s; }
#what-we-do .summary-cell.reveal:nth-child(6) { transition-delay: 0.40s; }
#what-we-do .summary-cell { padding: 24px 16px 20px; }
@media (max-width: 1240px) { #what-we-do .summary-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 800px) { #what-we-do .summary-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { #what-we-do .summary-grid { grid-template-columns: 1fr; } }

/* discipline roster, reused for the two sides of the set */
.disciplines { margin-top: 54px; border-top: 1px solid #1B2838; padding-top: 22px; }
.disc-lead { font-size: 15px; line-height: 1.6; color: #3a4750; max-width: 62ch; margin-bottom: 24px; }
.disc-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 26px; }
.disc-grid > div { font-size: 12.5px; line-height: 1.62; color: #5a6570; border-top: 1px solid #dde1e6; padding-top: 12px; }
.disc-h { display: block; font-size: 9.5px; letter-spacing: 2px; text-transform: uppercase; color: #b8934d; font-weight: 700; margin-bottom: 7px; }
@media (max-width: 1000px) { .disc-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .disc-grid { grid-template-columns: 1fr; } }

/* start here: the brief */
.section.start { background: #f4f1ea; }   /* 4 Oct: the gallery's light gold */
.section.start .label { color: #b8934d; }
.section.start .chip span { border-color: #e2d9c6; }
.brief { margin-top: 40px; max-width: 900px; }
.brief fieldset { border: 0; padding: 0; margin: 0 0 30px; }
.brief legend { font-family: 'DM Sans', sans-serif; font-weight: 700; font-size: 10.5px; letter-spacing: 2px; text-transform: uppercase; color: #b8934d; margin-bottom: 12px; }
.chips { display: flex; flex-wrap: wrap; gap: 10px; }
.chip { position: relative; }
.chip input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.chip span { display: inline-block; padding: 9px 14px; border: 1px solid #dde1e6; border-radius: 999px; background: #fff; font-family: 'DM Sans', sans-serif; font-size: 13px; color: #3a4750; cursor: pointer; transition: border-color 0.2s, background 0.2s, color 0.2s; }
.chip input:checked + span { background: #1B2838; border-color: #1B2838; color: #fff; }
.chip input:focus-visible + span { outline: 2px solid #1a5276; outline-offset: 2px; }
.brief .text { font-family: 'DM Sans', sans-serif; font-size: 14px; color: #1a1a1a; background: #fff; border: 1px solid #dde1e6; border-radius: 6px; padding: 11px 13px; width: 100%; box-sizing: border-box; }
.brief .text:focus { outline: 2px solid #1a5276; outline-offset: 1px; border-color: #1a5276; }
.brief fieldset > .text { margin-top: 12px; max-width: 420px; }
.chips.role { margin-bottom: 14px; }
.who-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-bottom: 12px; }
.brief textarea.text { resize: vertical; min-height: 84px; }
.brief-actions { display: flex; align-items: center; gap: 22px; flex-wrap: wrap; margin-top: 6px; }
.brief-actions .btn-solid { border-radius: 2px; padding: 12px 22px; }
.brief-note { font-size: 12px; line-height: 1.5; color: #5a6570; max-width: 52ch; }
.hp { position: absolute; left: -9999px; }
@media (max-width: 680px) { .who-grid { grid-template-columns: 1fr; } }

/* gallery intro and the full-bleed mosaic */
.gallery-intro { background: #f4f1ea; padding-bottom: calc(var(--section-pad) * 0.55); }
.gallery-intro h2 { max-width: 28ch; }
.gallery-intro p { color: #5a6570; max-width: 60ch; }
.gallery-intro .label { color: #b8934d; }
.gallery-intro h2::after { content: ""; display: block; width: 54px; height: 2px; background: #b8934d; margin: 16px 0 0; }
.gallery-mosaic { background: #f4f1ea; padding: 0 0 8px; }
.mosaic-grid { display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: calc((100vw - 24px) / 4); grid-auto-flow: dense; gap: 8px; width: 100%; margin: 0; }
.mtile { margin: 0; overflow: hidden; position: relative; background: #f4f1ea; }
.mtile img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; opacity: 0;
  transition: opacity 1.1s ease, transform 0.7s ease; filter: saturate(1.02) brightness(0.99); }
.mtile img.on { opacity: 1; }
.mtile:hover img.on { transform: scale(1.04); filter: saturate(1.1) brightness(1.04); }
@media (prefers-reduced-motion: reduce) { .mtile img { transition: none; } }
.mtile-big { grid-column: span 2; grid-row: span 2; }
.mtile-wide { grid-column: span 2; }
@media (max-width: 1000px) { .mosaic-grid { grid-template-columns: repeat(3, 1fr); grid-auto-rows: calc((100vw - 16px) / 3); } }
@media (max-width: 680px) { .mosaic-grid { grid-template-columns: repeat(2, 1fr); grid-auto-rows: calc((100vw - 6px) / 2); gap: 6px; }
  .mtile-big { grid-column: span 2; grid-row: span 2; } .mtile-wide, .mtile-tall { grid-column: span 1; grid-row: span 1; } }

/* the record table */
.record-wrap { margin-top: 40px; overflow-x: auto; }
table.record { width: 100%; border-collapse: collapse; font-family: 'DM Sans', sans-serif; font-size: 13.5px; line-height: 1.5; font-variant-numeric: tabular-nums; }
table.record th { text-align: left; font-size: 9.5px; letter-spacing: 2px; text-transform: uppercase; color: #b8934d; font-weight: 700; padding: 0 16px 10px 0; border-bottom: 1px solid #1B2838; }
table.record td { padding: 9px 16px 9px 0; border-bottom: 1px solid #eceef0; vertical-align: top; color: #3a4750; }
table.record td:first-child { color: #16384A; font-weight: 600; white-space: nowrap; }
table.record td:nth-child(3), table.record td:nth-child(4) { white-space: nowrap; }
table.record tbody tr:last-child td { border-bottom: 0; }
.mk-note { margin-top: 16px; font-size: 10.5px; letter-spacing: 1.4px; text-transform: uppercase; color: #9aa5ac; }
@media (max-width: 680px) { table.record th:nth-child(2), table.record td:nth-child(2), table.record th:nth-child(5), table.record td:nth-child(5) { display: none; } }

/* founder */
.founder .close { margin-top: 24px; }
.founder .close a { color: #16384A; font-weight: 600; }
.founder-portrait:has(> .founder-headshot) { width: 132px; height: 132px; margin-top: 8px; }
.founder { grid-template-columns: 1fr 220px; }
@media (max-width: 880px) { .founder { grid-template-columns: 1fr; } .founder-portrait:has(> .founder-headshot) { width: 112px; height: 112px; } }

/* contact */
.section.dark .contact-h2 { color: #fff; margin-bottom: 18px; }
.section.dark .contact-grid > div > p { color: rgba(255,255,255,0.8); }
.section.dark .contact-grid .pilot { font-size: 14.5px; color: rgba(255,255,255,0.62); max-width: 52ch; }
.section.dark .contact-details a { color: #fff; text-decoration: none; border-bottom: 1px solid rgba(255,255,255,0.35); }
.section.dark .contact-details a:hover { border-color: #d8bc82; color: #d8bc82; }
.mkts { margin-top: 14px; font-size: 11.5px; line-height: 1.7; color: rgba(255,255,255,0.6); max-width: 30ch; }

/* footer fine print */
.footer .copy .fine { margin-top: 10px; font-size: 11px; line-height: 1.6; color: rgba(255,255,255,0.5); max-width: 70ch; }
.footer .copy a { color: inherit; }

/* secondary pages */
.page { padding-top: 160px; }
.page .terms { margin-top: 40px; max-width: 64ch; }
.page .term { margin: 0 0 18px; font-size: 15.5px; line-height: 1.65; }
.page .term strong { color: #16384A; }
.page h3 { font-family: 'DM Serif Display', Georgia, serif; font-weight: 400; font-size: 26px; margin: 56px 0 12px; }
.page .list { margin: 0; padding-left: 22px; max-width: 60ch; font-size: 15px; line-height: 1.6; }
.page .list li { margin: 0 0 8px; padding-left: 4px; }
.work-link { margin-top: 18px; } .work-link a { color: #16384A; font-weight: 600; text-decoration: none; border-bottom: 1px solid #b8934d; }
.page-h1 { font-family: 'DM Serif Display', Georgia, serif; font-weight: 400; font-size: clamp(34px, 4.4vw, 50px); line-height: 1.12; color: #1B2838; margin: 0 0 18px; }

/* phase cards link to their service pages */
#what-we-do .summary-cell a.cell-link { text-decoration: none; color: inherit; }
#what-we-do .summary-cell a.cell-link::before { content: ""; position: absolute; inset: 0; z-index: 2; }
#what-we-do .summary-cell a.cell-link:focus-visible { outline: 2px solid #1a5276; outline-offset: 3px; }

/* footer link columns */
/* 5 Oct: the name reads "TECTO Studio" everywhere; the template's capitals are switched off for the wordmark and the hero label */
.wordmark { text-transform: none; } .wordmark .suffix { letter-spacing: 1.5px; }
.hero .hero-copy .label { text-transform: none; letter-spacing: 2px; }
.foot-nav { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 28px; width: 100%; padding-bottom: 34px; margin-bottom: 30px; border-bottom: 1px solid rgba(255,255,255,0.12); }
.foot-nav a { display: block; font-size: 13.5px; line-height: 1.9; color: rgba(255,255,255,0.78); text-decoration: none; }
.foot-nav a:hover { color: #d8bc82; }
.foot-h { display: block; font-size: 9.5px; letter-spacing: 2px; text-transform: uppercase; color: #b8934d; font-weight: 700; margin-bottom: 10px; }
.footer .footer-inner { flex-wrap: wrap; }
@media (max-width: 680px) { .foot-nav { grid-template-columns: 1fr 1fr; } }

/* content pages: guides, services, locations and their hubs */
.article .section-inner, .hub .section-inner { max-width: 1120px; }
.crumbs { font-size: 12px; letter-spacing: 0.4px; color: #7a858e; margin-bottom: 26px; display: flex; flex-wrap: wrap; gap: 8px; }
.crumbs a { color: #5a6570; text-decoration: none; border-bottom: 1px solid #dde1e6; }
.crumbs a:hover { color: #16384A; border-color: #16384A; }
.article h1, .hub h1 { font-family: 'DM Serif Display', Georgia, serif; font-weight: 400; font-size: clamp(34px, 4.4vw, 52px); line-height: 1.1; color: #1B2838; margin: 6px 0 18px; max-width: 24ch; }
.article .dek, .hub .dek { font-size: 19px; line-height: 1.55; color: #3a4750; max-width: 60ch; margin: 0 0 18px; }
.byline { font-size: 13px; color: #5a6570; margin: 0 0 30px; }
.byline a { color: #16384A; font-weight: 600; text-decoration: none; }
.lead-img { margin: 10px 0 46px; }
.lead-img img { width: 100%; height: auto; aspect-ratio: 16 / 7; object-fit: cover; display: block; border-radius: 4px; }
.lead-img figcaption { margin-top: 10px; font-size: 10.5px; letter-spacing: 1.4px; text-transform: uppercase; color: #9aa5ac; }
.article-grid { display: block; }
.article-grid.has-toc { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 56px; align-items: start; }
.toc { position: sticky; top: 110px; font-size: 13px; line-height: 1.5; }
.toc ol { list-style: none; margin: 12px 0 0; padding: 0; counter-reset: toc; }
.toc li { counter-increment: toc; margin: 0 0 10px; padding-left: 26px; position: relative; }
.toc li::before { content: counter(toc, decimal-leading-zero); position: absolute; left: 0; color: #b8934d; font-weight: 700; font-size: 11px; top: 2px; }
.toc a { color: #3a4750; text-decoration: none; }
.toc a:hover { color: #16384A; }
.prose { max-width: 70ch; font-size: 16.5px; line-height: 1.72; color: #26333c; }
.prose h2 { font-family: 'DM Serif Display', Georgia, serif; font-weight: 400; font-size: 30px; line-height: 1.2; color: #1B2838; margin: 54px 0 14px; scroll-margin-top: 110px; }
.prose h2:first-child { margin-top: 0; }
.prose h3 { font-family: 'DM Sans', sans-serif; font-weight: 700; font-size: 17px; color: #16384A; margin: 32px 0 8px; scroll-margin-top: 110px; }
.prose p { margin: 0 0 18px; max-width: none; font-size: inherit; line-height: inherit; }
.prose ul, .prose ol { margin: 0 0 20px; padding-left: 22px; }
.prose li { margin: 0 0 8px; padding-left: 4px; }
.prose a { color: #16384A; text-decoration: underline; text-decoration-color: rgba(22,56,74,0.35); text-underline-offset: 3px; }
.prose a:hover { text-decoration-color: #b8934d; }
.prose strong { color: #16384A; }
.prose .note { border-left: 2px solid #b8934d; background: #f8f6f1; padding: 14px 18px; font-size: 15px; color: #3a4750; }
.table-wrap { overflow-x: auto; margin: 6px 0 24px; }
table.data { width: 100%; border-collapse: collapse; font-size: 14px; line-height: 1.5; font-variant-numeric: tabular-nums; }
table.data th { text-align: left; font-size: 9.5px; letter-spacing: 1.8px; text-transform: uppercase; color: #b8934d; font-weight: 700; padding: 0 14px 10px 0; border-bottom: 1px solid #1B2838; vertical-align: bottom; }
table.data td { padding: 9px 14px 9px 0; border-bottom: 1px solid #eceef0; vertical-align: top; color: #3a4750; }
table.data td:first-child { color: #16384A; font-weight: 600; }
.cta-box { margin: 64px 0 0; background: #1B2838; color: #fff; padding: 40px 44px; border-radius: 6px; }
.cta-box .label { color: #d8bc82; }
.cta-box h2 { color: #fff; font-size: 32px; margin: 8px 0 12px; }
.cta-box p { color: rgba(255,255,255,0.8); max-width: 60ch; }
.cta-actions { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 22px; }
.cta-box .btn-solid { background: #fff; color: #1B2838; border: 1px solid #fff; border-radius: 2px; }
.cta-box .btn-ghost { color: #fff; border: 1px solid rgba(255,255,255,0.55); border-radius: 2px; background: transparent; }
.cta-box .btn-ghost:hover { border-color: #d8bc82; color: #d8bc82; }
.related { margin-top: 64px; }
.prose .fig { margin: 8px 0 28px; }
.prose .fig img { width: 100%; height: auto; display: block; border: 1px solid #eceef0; border-radius: 4px; background: #fff; }
.prose .fig figcaption { margin-top: 8px; font-size: 13px; color: #5a6570; line-height: 1.5; }
.tool { background: #f8f9fb; border: 1px solid #dde1e6; border-radius: 8px; padding: 26px 26px 20px; margin: 10px 0 30px; font-size: 15px; }
.tool .row { display: grid; grid-template-columns: minmax(0, 1fr) 180px; gap: 10px 18px; align-items: center; margin: 0 0 12px; }
.tool label { color: #26333c; font-weight: 600; }
.tool label small { display: block; font-weight: 400; color: #5a6570; font-size: 13px; }
.tool input, .tool select { font: inherit; padding: 9px 11px; border: 1px solid #c9cfd6; border-radius: 6px; background: #fff; width: 100%; box-sizing: border-box; }
.tool .out { margin-top: 18px; border-top: 1px solid #1B2838; padding-top: 14px; }
.tool .out table { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; }
.tool .out td { padding: 7px 0; border-bottom: 1px solid #eceef0; }
.tool .out td:last-child { text-align: right; font-weight: 700; color: #16384A; }
.tool .fine { font-size: 12.5px; color: #5a6570; margin-top: 12px; }
@media (max-width: 640px) { .tool .row { grid-template-columns: 1fr; } }
.cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; margin-top: 16px; }
.cards-hub { margin-top: 40px; }
.card { display: flex; flex-direction: column; gap: 8px; background: #fff; border: 1px solid #dde1e6; border-radius: 8px; padding: 22px 22px 20px;
  text-decoration: none; color: inherit; box-shadow: 0 6px 24px rgba(22,38,61,0.07); transition: transform 0.3s ease, box-shadow 0.3s ease; }
.card:hover { transform: translateY(-4px); box-shadow: 0 14px 34px rgba(22,38,61,0.14); }
.card .label { color: #b8934d; font-size: 9.5px; }
.card-title { font-family: 'DM Serif Display', Georgia, serif; font-size: 21px; line-height: 1.25; color: #1B2838; }
.card-dek { font-size: 14px; line-height: 1.55; color: #5a6570; }
.card-meta { font-size: 12px; color: #9aa5ac; margin-top: auto; padding-top: 6px; }
@media (max-width: 1000px) { .article-grid.has-toc { grid-template-columns: 1fr; gap: 10px; } .toc { position: static; border: 1px solid #dde1e6; border-radius: 6px; padding: 18px 20px 8px; } .cards { grid-template-columns: 1fr 1fr; } }
@media (max-width: 640px) { .cards { grid-template-columns: 1fr; } .cta-box { padding: 30px 24px; } .prose { font-size: 16px; } .lead-img img { aspect-ratio: 4 / 3; } }
