/* WordPress integration and inner templates. */

img { max-width: 100%; height: auto; }

.screen-reader-text {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.screen-reader-text:focus {
  position: fixed !important;
  z-index: 100000;
  top: 1rem;
  left: 1rem;
  width: auto;
  height: auto;
  padding: .8rem 1rem;
  clip: auto;
  color: var(--ink);
  background: var(--acid);
}

body.admin-bar .site-header { top: 32px; }
.desktop-nav .primary-menu { display: flex; gap: 2rem; align-items: center; margin: 0; padding: 0; list-style: none; }
.desktop-nav li { margin: 0; }
.work-card > a, .work-card a { display: block; }
.visual-image { background: #111; }
.visual-image img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.1s var(--ease), filter 1.1s var(--ease); }
.work-card:hover .visual-image img { transform: scale(1.035); filter: saturate(1.08); }
.work-meta h2, .work-meta h3 { margin: 0; font-size: clamp(1.45rem, 2.6vw, 3rem); line-height: .95; letter-spacing: -.045em; }
.project-archive .project-visual-1 { background: #111; --project-accent: linear-gradient(135deg, #48d7df 8%, #7668ff 52%, #ff5f3f 92%); }
.project-archive .project-visual-2 { background: #d9d4c8; --project-accent: #111; }
.project-archive .project-visual-3 { background: #6858df; --project-accent: #d7ff3f; }
.project-fallback-mark {
  position: absolute;
  inset: 22%;
  background: var(--project-accent, var(--accent));
  -webkit-mask: url("../images/logo-w-hd.png") center / contain no-repeat;
  mask: url("../images/logo-w-hd.png") center / contain no-repeat;
  opacity: .82;
	transition: transform .8s var(--ease), opacity .8s var(--ease);
}
.work-card:hover .project-fallback-mark { transform: scale(1.035); opacity: 1; }
.project-visual-label { position: absolute; z-index: 2; right: 1rem; bottom: 1rem; padding: .55rem .7rem; border: 1px solid rgba(240,238,232,.22); border-radius: 999px; color: var(--paper); background: rgba(9,9,9,.72); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); font: 800 .5rem/1 monospace; letter-spacing: .07em; text-transform: uppercase; }

.inner-hero {
  min-height: 72svh;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding-top: calc(var(--header-h) + 7rem);
  color: var(--paper);
  background: var(--ink);
}
.inner-hero h1 { max-width: 1200px; margin: 2rem 0 0; font-size: clamp(4rem, 9vw, 10rem); line-height: .82; letter-spacing: -.078em; text-transform: uppercase; }
.inner-hero > p { max-width: 700px; margin: 2.5rem 0 0 auto; color: rgba(240,238,232,.68); font-size: 1.25rem; }

.entry-content { padding: 8rem max(3.2vw, calc((100vw - 1120px) / 2)); font-size: clamp(1.05rem, 1.4vw, 1.25rem); }
.entry-content > * { max-width: 780px; margin-right: auto; margin-left: auto; }
.entry-content > .alignwide { max-width: 1120px; }
.entry-content > .alignfull { width: 100vw; max-width: none; margin-left: calc(50% - 50vw); }
.entry-content h2 { margin-top: 4rem; font-size: clamp(2.4rem, 5vw, 5rem); line-height: .95; letter-spacing: -.055em; }
.entry-content h3 { margin-top: 3rem; font-size: clamp(1.7rem, 3vw, 2.8rem); letter-spacing: -.04em; }
.entry-content p { line-height: 1.7; }
.entry-content a { text-decoration: underline; text-decoration-color: var(--accent); text-underline-offset: .18em; }
.entry-content blockquote { margin-top: 4rem; margin-bottom: 4rem; padding: 2rem; border-left: 5px solid var(--accent); font-size: 1.5em; }

.singular-cover, .project-cover { position: relative; overflow: hidden; background: var(--ink); }
.singular-cover img, .project-cover img { display: block; width: 100%; max-height: 88svh; object-fit: cover; }
.project-hero .project-intro { display: grid; grid-template-columns: minmax(280px, 560px) auto; gap: 2rem; align-items: end; justify-content: space-between; margin-top: 3rem; }
.project-hero .project-intro p { margin: 0; color: rgba(240,238,232,.7); font-size: 1.2rem; }
.project-hero .primary-button { justify-self: end; }

.project-navigation { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; padding: 3rem 3.2vw 8rem; font-size: clamp(1.3rem, 2.8vw, 3rem); font-weight: 800; letter-spacing: -.04em; }
.project-navigation a:last-child { text-align: right; }
.project-archive, .post-grid { padding-top: 7rem; }

.post-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 5rem 2rem; }
.post-card-image { aspect-ratio: 16 / 10; margin-bottom: 1.5rem; overflow: hidden; background: #d9d4c8; }
.post-card-image img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.post-card:hover img { transform: scale(1.035); }
.post-card > a > span { font-size: .65rem; font-weight: 800; letter-spacing: .08em; }
.post-card h2 { margin: 1rem 0; font-size: clamp(2rem, 4vw, 4.4rem); line-height: .93; letter-spacing: -.055em; }
.post-card p { max-width: 620px; opacity: .68; }

.pagination { grid-column: 1 / -1; padding-top: 3rem; border-top: 1px solid var(--line-light); }
.pagination .nav-links { display: flex; gap: .5rem; align-items: center; }
.pagination .page-numbers { display: grid; place-items: center; min-width: 42px; height: 42px; padding: 0 .7rem; border: 1px solid currentColor; border-radius: 999px; font-size: .7rem; font-weight: 800; }
.pagination .current { color: var(--paper); background: var(--ink); }

.inner-footer { display: grid; grid-template-columns: auto 1fr auto auto; gap: 2rem; align-items: center; min-height: 150px; padding: 2rem 3.2vw; border-top: 1px solid var(--line-dark); color: var(--paper); background: var(--ink); font-size: .58rem; font-weight: 800; letter-spacing: .09em; }
.inner-footer > span:first-of-type { justify-self: center; }
.inner-footer > span:last-child { justify-self: end; }
.footer-legal { display: flex; flex-wrap: wrap; gap: .6rem 1rem; font-size: .52rem; letter-spacing: .04em; text-transform: uppercase; }
.footer-legal a { color: rgba(240,238,232,.62); }
.footer-legal a:hover { color: var(--paper); }

.error-page { min-height: 100svh; display: grid; grid-template-columns: 1.4fr .6fr; gap: clamp(3rem, 8vw, 9rem); align-items: center; color: var(--ink); background: var(--acid); }
.error-page h1 { margin: 2rem 0 4rem; font-size: clamp(4rem, 10vw, 11rem); line-height: .8; letter-spacing: -.08em; text-transform: uppercase; }
.error-page p { max-width: 650px; font-size: clamp(1.05rem, 1.5vw, 1.3rem); line-height: 1.6; }
.error-page nav { display: flex; flex-direction: column; align-items: flex-start; gap: 1.4rem; }
.error-page nav > a:not(.primary-button) { padding-bottom: .35rem; border-bottom: 1px solid currentColor; font: 800 .62rem/1.2 monospace; letter-spacing: .08em; text-transform: uppercase; }
.error-page .primary-button { width: max-content; border: 1px solid var(--ink); }

.breadcrumbs { position: relative; z-index: 20; margin-top: var(--header-h); padding: 1rem 3.2vw; color: rgba(240,238,232,.68); background: var(--ink); border-top: 1px solid rgba(240,238,232,.14); font-size: .65rem; font-weight: 700; letter-spacing: .04em; }
.breadcrumbs ol { display: flex; flex-wrap: wrap; gap: .55rem; margin: 0; padding: 0; list-style: none; }
.breadcrumbs li:not(:last-child)::after { content: '/'; margin-left: .55rem; opacity: .45; }
.breadcrumbs a { color: inherit; }
.entry-meta { display: flex; flex-wrap: wrap; gap: .55rem 1rem; align-items: center; margin-top: 1.5rem; font-size: .7rem; font-weight: 750; letter-spacing: .045em; text-transform: uppercase; }
.entry-meta time + span::before { content: '·'; margin-right: 1rem; }

body:not(.home) .breadcrumbs + .singular-page .inner-hero,
body:not(.home) .breadcrumbs + .project-hero,
body:not(.home) .breadcrumbs + .project-archive,
body:not(.home) .breadcrumbs + .error-page { padding-top: 4rem; }

@media (max-width: 900px) {
  body.admin-bar .site-header { top: 46px; }
  .desktop-nav .primary-menu { display: none; }
  .inner-hero { min-height: 62svh; padding-top: calc(var(--header-h) + 5rem); }
  .inner-hero h1 { font-size: clamp(3.6rem, 13vw, 7rem); }
  .project-hero .project-intro { grid-template-columns: 1fr; }
  .project-hero .primary-button { justify-self: start; }
  .post-grid { grid-template-columns: 1fr; }
  .inner-footer { grid-template-columns: 1fr auto; }
  .inner-footer > span:first-of-type { display: none; }
  .footer-legal { grid-column: 1 / -1; grid-row: 2; }
  .error-page { grid-template-columns: 1fr; align-content: center; }
}

@media (max-width: 620px) {
  body:not(.home) .project-hero h1 {
    font-size: clamp(2.15rem, 9vw, 2.8rem);
    letter-spacing: -.06em;
    overflow-wrap: normal;
    word-break: normal;
  }
}
@media (max-width: 782px) { body.admin-bar .site-header { top: 46px; } }
@media (max-width: 560px) {
  .entry-content { padding-top: 5rem; padding-bottom: 5rem; }
  .project-navigation { grid-template-columns: 1fr; }
  .project-navigation a:last-child { text-align: left; }
  .inner-footer .brand-name { display: none; }
}

/* Corporate editorial components used by the 2026 content architecture. */
.editorial-lead { max-width: 920px !important; margin-bottom: 5rem !important; font-size: clamp(1.45rem, 2.35vw, 2.35rem); line-height: 1.35 !important; letter-spacing: -.025em; }
.editorial-card-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; }
.editorial-card { display: flex; flex-direction: column; min-height: 300px; padding: 2rem; border: 1px solid var(--line-light); border-radius: 18px; background: #e5e2da; transition: transform .35s var(--ease), background .35s var(--ease); }
.editorial-card:hover { transform: translateY(-4px); background: #dad7ce; }
.editorial-card > span { font-size: .62rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
.editorial-card h2 { margin-top: auto; margin-bottom: 1rem; font-size: clamp(2rem, 3.2vw, 3.5rem); }
.editorial-card p { margin: 0; font-size: 1rem; opacity: .72; }
.editorial-columns { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; margin-top: 5rem !important; margin-bottom: 5rem !important; }
.editorial-columns > div { padding: clamp(1.5rem, 3vw, 3rem); border-radius: 18px; color: var(--paper); background: var(--ink); }
.editorial-columns h2 { margin-top: 0; font-size: clamp(2rem, 3.4vw, 3.7rem); }
.editorial-columns ul { margin: 2rem 0 0; padding-left: 1.2rem; }
.editorial-columns li + li { margin-top: .75rem; }
.editorial-cta { display: flex; align-items: center; justify-content: space-between; gap: 2rem; margin-top: 6rem !important; padding: clamp(1.5rem, 3vw, 3rem); border-radius: 18px; color: var(--ink); background: var(--acid); }
.editorial-cta p { max-width: 660px; margin: 0; font-size: clamp(1.4rem, 2.3vw, 2.4rem); font-weight: 750; line-height: 1.15; letter-spacing: -.035em; }
.editorial-cta .primary-button { flex: 0 0 auto; color: var(--paper); background: var(--ink); text-decoration: none; }
.editorial-cta__actions { display: flex; flex: 0 0 auto; gap: 1rem; align-items: center; }
.editorial-cta__actions > a:not(.primary-button) { font: 800 .58rem/1.4 monospace; letter-spacing: .06em; text-transform: uppercase; text-decoration: underline; text-underline-offset: .25em; }
.editorial-profile { display: grid; grid-template-columns: 260px 1fr; gap: clamp(2rem, 5vw, 5rem); align-items: start; margin-bottom: 5rem !important; }
.editorial-profile img { width: 220px; height: 220px; object-fit: cover; border: 7px solid var(--acid); border-radius: 50%; }
.editorial-profile .editorial-lead { margin-top: 0; margin-bottom: 2rem !important; }
.contact-panel { display: grid; grid-template-columns: 1fr; gap: 4rem; padding: clamp(2rem, 5vw, 5rem); border-radius: 18px; color: var(--paper); background: var(--ink); }
.contact-panel h2 { max-width: 900px; margin: 1rem 0 2rem; }
.contact-panel > div > span { color: var(--acid); font-size: .62rem; font-weight: 800; letter-spacing: .12em; }
.contact-email { display: flex; align-items: center; justify-content: space-between; gap: 2rem; padding: 1.3rem 0; border-top: 1px solid var(--line-dark); border-bottom: 1px solid var(--line-dark); font-size: clamp(1.65rem, 4vw, 4.5rem); font-weight: 850; letter-spacing: -.05em; text-decoration: none !important; }

body.blog .inner-hero { min-height: min(520px, 58svh); }
body.blog .post-grid { padding: 6rem clamp(2rem, 5vw, 5rem); }
body:not(.home) .inner-footer { padding-right: clamp(2rem, 5vw, 5rem); padding-left: clamp(2rem, 5vw, 5rem); }

.inner-motion-band {
  position: relative;
  height: min(520px, 46vw);
  min-height: 320px;
  overflow: hidden;
  color: var(--paper);
  background: var(--ink);
  background-position: center;
  background-size: cover;
  isolation: isolate;
}
.inner-motion-band .motion-video { position: absolute; inset: -8%; width: 116%; height: 116%; object-fit: cover; }
.inner-motion-band .motion-shade { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(9,9,9,.7), rgba(9,9,9,.06), rgba(9,9,9,.5)); }

@media (max-width: 760px) {
  .editorial-card-grid, .editorial-columns, .editorial-profile { grid-template-columns: 1fr; }
  .editorial-profile { gap: 2rem; }
  .editorial-cta { align-items: flex-start; flex-direction: column; }
  .editorial-cta__actions { width: 100%; flex-direction: column; align-items: stretch; }
  .editorial-cta__actions > a:not(.primary-button) { padding: .5rem 0; }
  .editorial-cta .primary-button { width: 100%; justify-content: space-between; }
  .inner-motion-band { height: 48svh; min-height: 280px; }
}
