/* Twoears Post | SOUND — static rebuild of twoears.co.uk
   Look & feel taken from the Phase theme + Slider Revolution homepage. */

@font-face { font-family: "Source Sans 3"; font-style: normal; font-weight: 400; font-display: swap; src: url("../fonts/source-sans-3-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Source Sans 3"; font-style: normal; font-weight: 700; font-display: swap; src: url("../fonts/source-sans-3-latin-700-normal.woff2") format("woff2"); }
@font-face { font-family: "Nunito"; font-style: normal; font-weight: 400; font-display: swap; src: url("../fonts/nunito-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Nunito"; font-style: normal; font-weight: 700; font-display: swap; src: url("../fonts/nunito-latin-700-normal.woff2") format("woff2"); }

:root {
  color-scheme: dark;
  --bg: #1b1b1b;
  --bg-box: #303030;
  --bg-col: #444444;
  --bg-light: #ffffff;
  --text: #f7f7f7;
  --text-dark: #676767;
  --heading: #ffffff;
  --accent: #e5007e;          /* twoears pink (the "o") */
  --marker: #F7584C;
  --btn-bg: #ffffff;
  --btn-text: #333333;
  --font-body: "Source Sans 3", "Source Sans Pro", "Helvetica Neue", Arial, sans-serif;
  --font-hero: "Nunito", "Source Sans 3", Arial, sans-serif;
  --container: 1140px;
  --container-wide: 1324px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.88;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, video { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4 { color: var(--heading); font-weight: 700; line-height: 1.2; margin: 0 0 .6em; }
h2 { font-size: 28px; }
h3 { font-size: 18px; }
p { margin: 0 0 1.2em; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 16px; }
.container-wide { width: 100%; max-width: var(--container-wide); margin: 0 auto; padding: 0 16px; }
@media (min-width: 1200px) { .container, .container-wide { padding: 0; } }

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  background: var(--btn-bg);
  color: var(--btn-text);
  border: 3px solid var(--btn-bg);
  font-size: 13px;
  font-weight: 700;
  line-height: 13px;
  padding: 13px 30px;
  letter-spacing: 0;
  transition: background .25s, color .25s;
}
.btn:hover { background: transparent; color: #fff; }
.center { text-align: center; }

/* ---------- Site header (minimal: the WP site has no menu) ---------- */
.site-header {
  position: absolute; top: 0; left: 0; right: 0; z-index: 20;
  display: flex; align-items: center; justify-content: space-between;
  padding: 22px 32px;
}
.site-header .logo img { height: 34px; width: auto; }
.site-header nav a { margin-left: 28px; font-size: 13px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; opacity: .85; }
.site-header nav a:hover { opacity: 1; }
.site-header.on-dark { background: linear-gradient(rgba(0,0,0,.5), rgba(0,0,0,0)); }
@media (max-width: 600px) { .site-header { padding: 16px; } .site-header nav a { margin-left: 16px; } }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  height: 100vh; height: 100svh;
  min-height: 560px;
  overflow: hidden;
  background: #000;
  color: #fff;
  font-family: var(--font-hero);
}
.hero video, .hero .hero-poster {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  opacity: 0; transition: opacity .3s ease-in-out;
}
.hero .hero-poster { background-size: cover; background-position: 50% 50%; }
.hero.ready video, .hero.ready .hero-poster { opacity: 1; }
.hero-stage {
  position: absolute; inset: 0;
  display: grid; place-items: center;
  text-shadow: 0 2px 20px rgba(0,0,0,.45);
}
.hero-layer {
  position: absolute; left: 50%; top: 50%;
  transform: translate(-50%, -50%);
  white-space: nowrap; margin: 0; font-weight: 400; line-height: 1;
  opacity: 0; transition: opacity .5s cubic-bezier(.7,0,.3,1);
  pointer-events: none;
}
.hero-layer.show { opacity: 1; }
.hero-layer strong { font-weight: 700; }
.hero-love   { font-size: clamp(42px, 11.3vw, 140px); transform: translate(calc(-50% + .14em), calc(-50% - .19em)); transition-duration: 1.5s; }
.hero-alot   { font-size: clamp(20px, 4.8vw, 60px);   transform: translate(calc(-50% + .75em), calc(-50% + 1.35em)); }
.hero-line   { font-size: clamp(24px, 5.6vw, 70px); }
.hero-line-1 { transform: translate(calc(-50% + .5em),  calc(-50% - 2.15em)); }
.hero-line-2 { transform: translate(calc(-50% - 1em),   calc(-50% - .37em)); }
.hero-line-3 { transform: translate(calc(-50% + 1.15em), calc(-50% + 1.4em)); }
.hero-many   { font-size: clamp(34px, 8vw, 100px); transform: translate(-50%, calc(-50% - .28em)); }
.hero-layer.show.hero-love { transition-duration: 1.5s; }
.hero-layer.out { transition-duration: .3s; opacity: 0; }

.hero-logos {
  position: absolute; left: 0; right: 0; bottom: 8%;
  width: min(1060px, 92%); margin: 0 auto;
  height: 110px;
}
.hero-logo-row {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
}
.hero-logo-row img {
  width: auto; height: auto; max-height: 105px;
  opacity: 0; transform: translateX(60vw);
  transition: transform .4s cubic-bezier(.7,0,.3,1), opacity .4s;
  filter: drop-shadow(0 2px 6px rgba(0,0,0,.5));
}
.hero-logo-row.in img { opacity: 1; transform: translateX(0); }
.hero-logo-row.out img { opacity: 0; transform: translateX(-60vw); transition: transform .3s cubic-bezier(.6,-.28,.735,.045), opacity .3s; }
@media (max-width: 900px) {
  .hero-logos { height: 70px; bottom: 11%; }
  .hero-logo-row img { max-height: 48px; max-width: 11%; }
}

.hero-scroll {
  position: absolute; left: 50%; bottom: 36px; transform: translateX(-50%);
  width: 35px; height: 55px; border: 1px solid #fff; border-radius: 35px;
  opacity: 0; transition: opacity 2s; cursor: pointer; background: transparent;
}
.hero-scroll.show { opacity: 1; }
.hero-scroll span {
  position: absolute; left: 50%; top: 10px; width: 6px; height: 6px; margin-left: -3px;
  border-radius: 50%; background: #fff; animation: scrollDot 2s infinite;
}
@keyframes scrollDot { 0% { transform: translateY(0); opacity: 1; } 80% { transform: translateY(26px); opacity: 0; } 100% { opacity: 0; } }

/* reduced motion: show the final frame, no timeline */
@media (prefers-reduced-motion: reduce) {
  .hero-layer, .hero-logo-row img { transition: none; }
}

/* ---------- Sections ---------- */
.section { position: relative; padding: 80px 0; }
.section-videos {
  padding: 60px 0 70px;
  background: linear-gradient(to bottom, #000 0%, #000 40%, #191919 100%);
}
.section-videos .btn-row { margin-top: 40px; text-align: center; }

.video-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0; }
.video-grid.cols-4 { grid-template-columns: repeat(4, 1fr); }
.video-card { padding: 14px; }
.video-card .thumb {
  position: relative; display: block; overflow: hidden; background: #222; aspect-ratio: 475 / 280;
}
.video-card .thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.video-card:hover .thumb img { transform: scale(1.04); }
.video-card .thumb::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,.55) 0%, rgba(0,0,0,0) 45%);
  transition: background .3s;
}
.video-card:hover .thumb::after { background: rgba(0,0,0,.35); }
.video-card .play {
  position: absolute; left: 50%; top: 50%; width: 48px; height: 48px; margin: -24px 0 0 -24px;
  z-index: 2; color: #fff; filter: drop-shadow(0 2px 8px rgba(0,0,0,.5));
  transition: transform .3s;
}
.video-card:hover .play { transform: scale(1.15); }
.video-card .play svg { width: 48px; height: 48px; fill: #fff; stroke: none; }
.video-card .title {
  position: absolute; left: 20px; right: 20px; bottom: 16px; z-index: 2;
  margin: 0; font-size: 16px; font-weight: 700; color: #fff; line-height: 1.44;
}
.video-grid.cols-4 .video-card .title { font-size: 14px; left: 16px; bottom: 12px; }
@media (max-width: 900px) { .video-grid.cols-4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .video-grid, .video-grid.cols-4 { grid-template-columns: 1fr; } .video-card { padding: 8px 0; } }

/* ---------- About / services box ---------- */
.section-about { padding: 0 0 36px; }
.about-box {
  background: var(--bg-box);
  display: grid; grid-template-columns: 6fr 3fr 3fr; gap: 0;
  padding: 35px 35px 35px 55px;
}
.about-intro { padding-right: 30px; }
.about-intro .logo { max-width: 80%; margin: 0 0 24px; }
.about-intro p { font-size: 20px; line-height: 1.88; text-indent: 2.4em; margin: 0; }
.service-col { background: var(--bg-col); padding: 35px; margin-left: 35px; display: flex; flex-direction: column; justify-content: flex-start; gap: 52px; }
.service { text-align: center; }
.js .service {
  opacity: 0; transform: scale(.4) translateX(-120px);
  transition: opacity .7s ease, transform .7s cubic-bezier(.2,.8,.2,1);
}
.js .service.in { opacity: 1; transform: none; }
.service svg { width: 34px; height: 34px; stroke: #f7f7f7; stroke-width: 1.6; margin: 0 auto 14px; }
.service h3 { font-size: 18px; margin: 0; }
@media (max-width: 960px) {
  .about-box { grid-template-columns: 1fr 1fr; padding: 30px; }
  .about-intro { grid-column: 1 / -1; padding: 0 0 30px; }
  .service-col { margin-left: 0; }
  .service-col + .service-col { margin-left: 20px; }
}
@media (max-width: 560px) {
  .about-box { grid-template-columns: 1fr; padding: 24px 16px; }
  .about-intro p { font-size: 17px; }
  .service-col + .service-col { margin-left: 0; margin-top: 16px; }
  .service-col { gap: 34px; padding: 28px 16px; }
}

/* ---------- Clients strip ---------- */
.section-clients { padding: 0 0 36px; }
.clients { background: #fff; height: 150px; overflow: hidden; position: relative; }
.clients-track { display: flex; height: 100%; transition: transform .8s cubic-bezier(.7,0,.3,1); will-change: transform; }
.clients-row { flex: 0 0 100%; display: flex; align-items: center; justify-content: space-around; padding: 0 30px; gap: 20px; }
.clients-row img { max-height: 105px; max-width: 12%; width: auto; height: auto; object-fit: contain; }
@media (max-width: 700px) { .clients { height: 90px; } .clients-row img { max-height: 56px; } }

/* ---------- Testimonials ---------- */
.section-testimonials { padding: 0 0 36px; }
.testimonials { background: #fff; color: var(--text-dark); padding: 70px 70px 40px; position: relative; text-align: center; }
.testimonials-viewport { overflow: hidden; }
.testimonials-track { display: flex; transition: transform .6s cubic-bezier(.7,0,.3,1); }
.testimonial { flex: 0 0 100%; padding: 0 10px; }
.testimonial blockquote { margin: 0 auto; max-width: 910px; }
.testimonial p { font-size: 22px; line-height: 1.88; color: var(--text-dark); margin: 0 0 18px; }
.testimonial cite { font-style: normal; font-size: 13px; display: block; }
.testimonial cite::before { content: "— "; }
.t-nav {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 44px; height: 44px; border: 0; background: transparent; color: #333; cursor: pointer; opacity: .7;
}
.t-nav:hover { opacity: 1; }
.t-nav svg { width: 30px; height: 30px; stroke: #333; }
.t-prev { left: 24px; } .t-next { right: 24px; }
.t-dots { list-style: none; margin: 40px 0 0; padding: 0; display: flex; justify-content: center; gap: 18px; }
.t-dots button { width: 10px; height: 10px; border-radius: 50%; border: 0; background: #333; opacity: .25; cursor: pointer; padding: 0; }
.t-dots button.on { opacity: 1; }
@media (max-width: 700px) { .testimonials { padding: 50px 24px 30px; } .testimonial p { font-size: 18px; } .t-nav { display: none; } }

/* ---------- Posts CTA ---------- */
.section-posts { padding: 40px 0 70px; text-align: center; }

/* ---------- Map ---------- */
.map-wrap { position: relative; height: 420px; background: #111; }
#map { position: absolute; inset: 0; }
.map-wrap .leaflet-container { background: #111; font-family: var(--font-body); }
#map.osm .leaflet-tile-pane { filter: invert(1) hue-rotate(180deg) brightness(.8) contrast(.9) saturate(.35); }
.pin { width: 30px; height: 42px; transform: translate(-15px, -42px); }
.pin svg { width: 30px; height: 42px; fill: var(--marker); stroke: none; display: block; }

/* ---------- Footer ---------- */
.site-footer { padding: 70px 0 40px; }
.footer-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 30px; }
.footer-col h3 { display: flex; align-items: center; gap: 28px; font-size: 18px; margin: 0 0 16px; }
.footer-col h3 .ico {
  display: inline-flex; align-items: center; justify-content: center; flex: 0 0 45px;
  width: 45px; height: 45px; border: 2px solid #fff; border-radius: 50%;
}
.footer-col h3 .ico svg { width: 20px; height: 20px; stroke: #fff; }
.footer-col p { margin: 0 0 20px; }
.footer-col a.strong { font-weight: 700; }
.footer-col .links a { display: block; font-weight: 700; margin-bottom: 44px; }
.footer-col .social { display: flex; flex-direction: column; gap: 10px; }
.footer-col .social a {
  display: inline-flex; align-items: center; justify-content: center;
  width: 45px; height: 45px; border: 2px solid #fff; border-radius: 50%;
}
.footer-col .social a svg { width: 18px; height: 18px; stroke: #fff; }
.footer-legal { margin-top: 60px; padding-top: 24px; border-top: 1px solid #2c2c2c; font-size: 13px; color: #9a9a9a; line-height: 1.7; }
.footer-legal a { color: #cfcfcf; }
.footer-legal a:hover { color: #fff; }
@media (max-width: 900px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .footer-grid { grid-template-columns: 1fr; } .footer-col .links a { margin-bottom: 18px; } }

/* ---------- Back to top ---------- */
#back-to-top {
  position: fixed; right: 50px; bottom: 50px; width: 50px; height: 50px; z-index: 30;
  background: #333; color: #fff; display: grid; place-items: center;
  opacity: 0; visibility: hidden; transition: opacity .3s, visibility .3s;
}
#back-to-top.show { opacity: 1; visibility: visible; }
#back-to-top svg { width: 18px; height: 18px; stroke: #fff; }
@media (max-width: 600px) { #back-to-top { right: 16px; bottom: 16px; } }

/* ---------- Scroll reveal ---------- */
.js .reveal { opacity: 0; transform: translateY(40px); transition: opacity .8s ease, transform .8s cubic-bezier(.2,.8,.2,1); }
.js .reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal, .service { opacity: 1; transform: none; transition: none; } }

/* ---------- Inner pages (work, video, news, post) ---------- */
.page-hero {
  position: relative; min-height: 420px; display: grid; place-items: center; text-align: center;
  background: #333 center / cover no-repeat; padding: 120px 16px 70px;
}
.page-hero::before { content: ""; position: absolute; inset: 0; background: rgba(0,0,0,.45); }
.page-hero > * { position: relative; }
.page-hero h1 { font-size: clamp(28px, 4.5vw, 46px); max-width: 900px; margin: 0; }
.page-hero .meta { margin-top: 14px; font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: #ddd; }
.page-hero.plain { min-height: 0; padding: 110px 16px 40px; background: var(--bg); }
.page-hero.plain::before { display: none; }

.page-body { padding: 60px 0 40px; }
.entry { max-width: 760px; margin: 0 auto; }
.entry p, .entry li { font-size: 17px; line-height: 1.88; }
.entry h2 { font-size: 24px; margin-top: 1.4em; }
.entry img { margin: 1.5em auto; }
.entry iframe { max-width: 100%; }
.entry .video-embed { position: relative; aspect-ratio: 16 / 9; margin: 0 0 30px; background: #000; }
.entry .video-embed iframe, .entry .video-embed video { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.entry-nav { max-width: 760px; margin: 50px auto 0; display: flex; justify-content: space-between; gap: 20px; font-weight: 700; }
.entry-nav a { opacity: .8; } .entry-nav a:hover { opacity: 1; }

.post-list { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.post-item { background: #262626; display: flex; flex-direction: column; }
.post-item .thumb { aspect-ratio: 500 / 330; overflow: hidden; background: #222; }
.post-item .thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s; }
.post-item:hover .thumb img { transform: scale(1.04); }
.post-item .body { padding: 24px 26px 28px; }
.post-item .date { font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: #9a9a9a; }
.post-item h2 { font-size: 20px; margin: 8px 0 10px; }
.post-item p { font-size: 15px; color: #cfcfcf; margin: 0; }
@media (max-width: 900px) { .post-list { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .post-list { grid-template-columns: 1fr; } }

/* ---------- Lightbox ---------- */
.lightbox { position: fixed; inset: 0; z-index: 100; background: rgba(0,0,0,.92); display: none; align-items: center; justify-content: center; padding: 24px; }
.lightbox.open { display: flex; }
.lightbox .frame { width: min(1100px, 100%); aspect-ratio: 16 / 9; background: #000; position: relative; }
.lightbox iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.lightbox .close { position: absolute; top: 18px; right: 22px; width: 44px; height: 44px; border: 0; background: transparent; color: #fff; cursor: pointer; }
.lightbox .close svg { width: 30px; height: 30px; stroke: #fff; }

/* ---------- Terms page ---------- */
.terms h2 { font-size: 20px; margin-top: 2em; }
.terms table { border-collapse: collapse; width: 100%; margin: 1em 0 2em; font-size: 15px; }
.terms th, .terms td { border: 1px solid #3a3a3a; padding: 10px 12px; text-align: left; vertical-align: top; }
.terms th { background: #262626; }
