
@import url('https://fonts.googleapis.com/css2?family=Barlow+Condensed:wght@600;700;800&family=Inter:wght@400;500;600;700;800&display=swap');

/* =====================================================
   THE NARRATIVE LENS LTD
   CORPORATE WEBSITE — STYLESHEET VERSION 1.4
   Compatible with script.js Version 1.4
===================================================== */

/* 1. DESIGN SYSTEM */

:root {
  --ink: #141519;
  --gold: #b67b37;
  --gold-light: #d6a052;
  --paper: #ffffff;
  --muted: #555c63;
  --dark: #0e1014;
  --soft: #f5f4f2;
  --header-height: 82px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-height) + 16px);
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: Inter, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font: inherit;
}

img {
  display: block;
  max-width: 100%;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 4px;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1,
h2 {
  font-family: 'Barlow Condensed', Impact, 'Arial Narrow', sans-serif;
  font-weight: 800;
  line-height: 0.98;
}

section[id] {
  scroll-margin-top: calc(var(--header-height) + 16px);
}

/* 2. HEADER AND BRAND */

.site-header {
  min-height: var(--header-height);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 0 clamp(22px, 6vw, 110px);
  background: #ffffff;
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 2px 14px #00000010;
}

.brand {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-shrink: 0;
  min-width: 0;
}

.brand-mark {
  width: 54px;
  height: 54px;
  flex-shrink: 0;
  border-radius: 50%;
  background: radial-gradient(
    circle at 45% 40%,
    #101010 0 20%,
    #a66a29 23%,
    #0d0e10 35%,
    #e6b46a 38%,
    #1c1c1e 47%,
    #070709 56%,
    #bd8b4d 59%,
    #090909 65%
  );
  box-shadow: 0 0 0 2px #191919;
}

.brand-name {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.brand-name small {
  font-size: 10px;
  letter-spacing: 2px;
  font-weight: 800;
}

.brand-name strong {
  font-family: 'Barlow Condensed', Impact, sans-serif;
  font-size: 30px;
  line-height: 0.95;
  letter-spacing: 0.4px;
  white-space: nowrap;
}

.brand-name em {
  font-style: normal;
  color: var(--gold);
}

.brand-name > span {
  font-size: 7px;
  font-weight: 800;
  letter-spacing: 1.25px;
  margin-top: 7px;
}

/* 3. DESKTOP NAVIGATION */

.nav {
  display: flex;
  align-items: center;
  gap: 38px;
}

.nav a {
  position: relative;
  font-size: 11px;
  letter-spacing: 1px;
  font-weight: 800;
  padding: 12px 0;
  white-space: nowrap;
  transition: color 0.25s ease;
}

.nav a:hover,
.nav a.active,
.nav a[aria-current="location"] {
  color: var(--gold);
}

.nav a::after {
  content: "";
  position: absolute;
  bottom: 4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--gold);
  transition: width 0.25s ease;
}

.nav a:hover::after,
.nav a.active::after {
  width: 100%;
}

.menu-toggle {
  display: none;
}

/* 4. HERO */

.hero {
  min-height: 540px;
  display: grid;
  grid-template-columns: 42% 58%;
  background: linear-gradient(
    110deg,
    #ffffff 10%,
    #f4f3f1 55%,
    #dddddd
  );
  overflow: hidden;
}

.hero-copy {
  padding: 65px 25px 55px clamp(28px, 6.2vw, 110px);
  position: relative;
  z-index: 2;
  min-width: 0;
}

.eyebrow {
  font-size: 11px;
  letter-spacing: 2px;
  font-weight: 800;
  color: var(--gold);
  line-height: 1.5;
}

.hero h1 {
  font-size: clamp(48px, 4.1vw, 77px);
  letter-spacing: -0.5px;
  margin: 20px 0;
  overflow-wrap: break-word;
}

.hero h1 span {
  color: var(--gold);
}

.hero-copy p:not(.eyebrow) {
  font-size: 14px;
  line-height: 1.65;
  max-width: 565px;
}

.hero-copy .lead {
  font-size: 16px !important;
}

/* 5. BUTTONS */

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 26px;
}

.btn {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 25px;
  padding: 14px 20px;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 1px;
  line-height: 1.4;
  text-align: left;
  transition:
    transform 0.25s ease,
    background 0.25s ease,
    box-shadow 0.25s ease;
}

.btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 20px #00000015;
}

.btn.primary {
  background: linear-gradient(
    100deg,
    #b47c36,
    #d6a052
  );
  color: #111111;
}

.btn.primary:hover {
  background: linear-gradient(
    100deg,
    #d6a052,
    #e4b66d
  );
}

.btn.secondary {
  border: 1px solid #444444;
  background: #ffffff;
}

/* 6. CINEMATIC HERO VISUAL */

.hero-visual {
  min-height: 540px;
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background:
    linear-gradient(
      90deg,
      transparent 65%,
      #00000025
    ),
    url('assets/hero-editorial.webp')
    center center / cover no-repeat;
}

/* Works with existing .hero-visual class.
   Also supports optional .cinematic-hero class. */

.hero-visual::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background: radial-gradient(
    circle at 45% 50%,
    transparent 15%,
    #070b1555 100%
  );
  animation: atmosphere 12s ease-in-out infinite;
}

.hero-visual::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background: linear-gradient(
    115deg,
    transparent 30%,
    #d6a05213 48%,
    transparent 65%
  );
  animation: cinematic-sweep 14s ease-in-out infinite;
}

/* 7. CINEMATIC LENS */

.lens,
.cinematic-lens {
  position: absolute;
  z-index: 1;
  width: min(35vw, 340px);
  aspect-ratio: 1;
  left: 45%;
  top: 53%;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  border: 7px solid #b77d3b;
  box-shadow:
    0 0 0 12px #16191dcc,
    0 0 0 16px #d6a05266,
    0 0 70px #f6b96780,
    inset 0 0 50px #efae5770;
  animation: lens-glow 7s ease-in-out infinite;
  will-change: filter;
}

.lens::before,
.cinematic-lens::before {
  content: "";
  position: absolute;
  inset: 12px;
  border-radius: 50%;
  border: 1px dashed #e8bb80;
  animation: rotate 22s linear infinite;
}

.lens::after,
.cinematic-lens::after {
  content: "";
  position: absolute;
  inset: 4px;
  border-radius: 50%;
  border: 1px solid #ffffff30;
  pointer-events: none;
}

.lens-core {
  position: absolute;
  inset: 22px;
  display: grid;
  place-items: center;
  color: #d8b17a;
  font-size: 75px;
  border-radius: 50%;
  background: radial-gradient(
    circle,
    #131f32cc,
    #090e16e8
  );
  text-shadow: 0 0 28px #d6a05290;
}

/* 8. HERO DATA LABELS */

.data-tag {
  position: absolute;
  z-index: 3;
  background: #0c101ae0;
  border: 1px solid #e4b87c66;
  padding: 11px 13px;
  color: #ffffff;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.8px;
  line-height: 1.35;
  max-width: 190px;
  animation: fade-in 0.8s both;
}

.data-tag small {
  display: block;
  font-size: 10px;
  font-weight: 400;
  letter-spacing: 0;
  margin-top: 4px;
}

.tag-one {
  top: 14%;
  left: 8%;
  animation-delay: 0.3s;
}

.tag-two {
  top: 53%;
  left: 5%;
  animation-delay: 0.9s;
}

.tag-three {
  right: 5%;
  bottom: 13%;
  animation-delay: 1.5s;
}

/* 9. FIVE CORE PILLARS */

.pillars {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  padding: 28px clamp(25px, 6vw, 110px);
  gap: 16px;
  background: #f8f8f8;
}

.pillars article {
  display: flex;
  align-items: center;
  gap: 13px;
  min-width: 0;
  border-right: 1px solid #cccccc;
  padding-right: 12px;
}

.pillars article:last-child {
  border-right: 0;
}

.pillars article > span {
  font-size: 35px;
  color: var(--gold);
  flex-shrink: 0;
  line-height: 1;
}

.pillars h3 {
  font-size: 10px;
  letter-spacing: 0.7px;
  margin: 0 0 5px;
}

.pillars p {
  font-size: 11px;
  line-height: 1.45;
  color: #555555;
  margin: 0;
}

/* 10. ABOUT US */

.intro-section {
  display: grid;
  grid-template-columns: 46% 54%;
  background: #ffffff;
}

.intro-image {
  overflow: hidden;
  min-height: 420px;
}

.intro-image img {
  width: 100%;
  height: 100%;
  min-height: 420px;
  object-fit: cover;
  transition: transform 0.8s ease;
}

.intro-image:hover img {
  transform: scale(1.035);
}

.intro-content {
  padding:
    55px
    clamp(30px, 6vw, 110px)
    45px
    55px;
  min-width: 0;
}

.intro-content h2,
.vision-section h2,
.partners h2,
.contact h2 {
  font-size: clamp(35px, 3vw, 54px);
  max-width: 700px;
}

.intro-content p:not(.eyebrow) {
  font-size: 14px;
  line-height: 1.7;
  max-width: 630px;
}

.intro-content .btn {
  margin-top: 15px;
}

/* 11. THE VISION */

.vision-section {
  padding: 85px clamp(28px, 7vw, 125px);
  background: var(--soft);
}

.vision-lead {
  max-width: 800px;
  line-height: 1.75;
  color: #4c5055;
  font-size: 15px;
}

.focus-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 22px;
  margin-top: 40px;
}

.focus-grid > div {
  min-width: 0;
  border-top: 2px solid #ba874a;
  padding-top: 20px;
}

.focus-grid b {
  color: var(--gold);
  font-size: 13px;
}

.focus-grid h3 {
  font-size: 16px;
  margin: 16px 0 10px;
}

.focus-grid p {
  font-size: 13px;
  color: #555555;
  line-height: 1.65;
}

/* 12. COLLABORATION SECTION */

.partners {
  background: var(--dark);
  color: #ffffff;
  padding: 70px clamp(24px, 5vw, 90px);
}

.partners h2 {
  margin-bottom: 18px;
}

.partners-intro {
  max-width: 800px;
  font-size: 14px;
  line-height: 1.75;
  color: #d0d0d0;
  margin-bottom: 32px;
}

.partner-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}

/* Supports both original article cards
   and updated .partner-card HTML. */

.partner-grid > article,
.partner-card {
  min-width: 0;
  background-color: #191c22;
  border: 1px solid #ffffff20;
  overflow: hidden;
  transition:
    transform 0.3s ease,
    border-color 0.3s ease,
    box-shadow 0.3s ease;
}

.partner-grid > article:hover,
.partner-card:hover {
  transform: translateY(-5px);
  border-color: #b67b3780;
  box-shadow: 0 12px 30px #00000040;
}

/* Original HTML:
   <article style="--photo:url(...)">
      <div>...</div>
   </article>
*/

.partner-grid > article:not(.partner-card) {
  min-height: 250px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 20px;
  background-image:
    linear-gradient(
      0deg,
      #080a0df5 0%,
      #080a0dd9 28%,
      #080a0d22 90%
    ),
    var(--photo);
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
}

.partner-grid > article:not(.partner-card) h3 {
  font-size: 13px;
  letter-spacing: 0.8px;
  margin-bottom: 10px;
  color: #ffffff;
}

.partner-grid > article:not(.partner-card) p {
  font-size: 12px;
  line-height: 1.65;
  color: #e1e1e1;
  margin: 0;
}

/* Updated HTML card layout */

.partner-card {
  display: flex;
  flex-direction: column;
}

.partner-image {
  width: 100%;
  height: 165px;
  overflow: hidden;
  background: #252a30;
}

.partner-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.partner-card:hover .partner-image img {
  transform: scale(1.055);
}

.partner-content {
  padding: 20px 18px 24px;
  flex: 1;
}

.partner-content h3 {
  font-size: 13px;
  letter-spacing: 0.8px;
  margin: 0 0 12px;
  color: #ffffff;
}

.partner-content p {
  font-size: 12px;
  line-height: 1.65;
  margin: 0;
  color: #c9cbd0;
}

/* 13. CONTACT */

.contact {
  padding: 85px clamp(28px, 8vw, 140px);
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px 40px;
  align-items: center;
}

.contact h2 {
  margin-bottom: 16px;
}

.contact p:not(.eyebrow) {
  max-width: 650px;
  line-height: 1.65;
  font-size: 14px;
}

.contact > .btn {
  max-width: 100%;
}

.email-address {
  grid-column: 2;
  font-size: 12px !important;
  color: var(--muted);
  overflow-wrap: anywhere;
}

.email-address a:hover {
  color: var(--gold);
  text-decoration: underline;
}

/* 14. FOOTER */

footer {
  background: #111319;
  color: #d0d0d0;
  display: flex;
  justify-content: space-between;
  gap: 25px;
  padding: 28px clamp(28px, 6vw, 110px);
  font-size: 10px;
  letter-spacing: 0.7px;
  line-height: 1.6;
}

/* 15. ANIMATIONS */

@keyframes rotate {
  to {
    transform: rotate(360deg);
  }
}

@keyframes lens-glow {
  0%, 100% {
    filter: brightness(1);
  }

  50% {
    filter: brightness(1.17);
  }
}

@keyframes atmosphere {
  0%, 100% {
    opacity: 0.65;
  }

  50% {
    opacity: 1;
  }
}

@keyframes cinematic-sweep {
  0%, 100% {
    opacity: 0.25;
    transform: translateX(-10%);
  }

  50% {
    opacity: 0.7;
    transform: translateX(10%);
  }
}

@keyframes fade-in {
  from {
    opacity: 0;
    transform: translateY(12px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes editorial-reveal {
  from {
    opacity: 0;
    translate: 0 15px;
  }

  to {
    opacity: 1;
    translate: 0 0;
  }
}

/* 16. SCROLL REVEAL
   Activated by script.js Version 1.4 */

@media (prefers-reduced-motion: no-preference) {

  .pillars article,
  .focus-grid > div,
  .partner-card {
    animation: editorial-reveal 0.7s ease both;
    animation-play-state: paused;
  }

  .pillars article.is-visible,
  .focus-grid > div.is-visible,
  .partner-card.is-visible {
    animation-play-state: running;
  }

}

/* 17. TABLET */

@media (max-width: 1050px) {

  .brand-name strong {
    font-size: 24px;
  }

  .nav {
    gap: 20px;
  }

  .hero {
    grid-template-columns: 50% 50%;
  }

  .hero-copy {
    padding: 45px 25px;
  }

  .pillars {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .pillars article {
    border-right: 0;
  }

  .partner-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .focus-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

}

/* 18. MOBILE — IPHONE AND ANDROID */

@media (max-width: 700px) {

  :root {
    --header-height: 75px;
  }

  .site-header {
    height: var(--header-height);
    min-height: var(--header-height);
    padding: 0 17px;
    gap: 10px;
  }

  .brand {
    gap: 10px;
    min-width: 0;
  }

  .brand-mark {
    width: 42px;
    height: 42px;
  }

  .brand-name small {
    font-size: 9px;
  }

  .brand-name strong {
    font-size: 22px;
  }

  .brand-name > span {
    font-size: 5.7px;
    letter-spacing: 0.7px;
  }

  /* Working mobile hamburger menu */

  .menu-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    width: 44px;
    height: 44px;
    padding: 0;
    border: 0;
    border-radius: 4px;
    background: transparent;
    color: var(--gold);
    font-size: 27px;
    line-height: 1;
    cursor: pointer;
    position: relative;
    z-index: 1002;
    touch-action: manipulation;
  }

  .menu-toggle:hover {
    background: #f5f4f2;
  }

  .menu-toggle[aria-expanded="true"] {
    color: var(--ink);
  }

  .nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    z-index: 1001;
    background: #ffffff;
    padding: 16px 25px 24px;
    box-shadow: 0 12px 24px #00000020;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    border-top: 1px solid #eeeeee;
  }

  .nav.open {
    display: flex;
    animation: mobile-menu-in 0.2s ease both;
  }

  .nav a {
    display: block;
    width: 100%;
    padding: 16px 4px;
    font-size: 12px;
    letter-spacing: 1.2px;
    border-bottom: 1px solid #eeeeee;
  }

  .nav a:last-child {
    border-bottom: 0;
  }

  .nav a::after {
    display: none;
  }

  .nav a.active {
    color: var(--gold);
  }

  /* Mobile hero */

  .hero {
    display: flex;
    flex-direction: column;
  }

  .hero-copy {
    padding: 44px 25px 32px;
  }

  .hero h1 {
    font-size: clamp(46px, 10.5vw, 67px);
    overflow-wrap: break-word;
  }

  .hero-copy p:not(.eyebrow) {
    font-size: 14px;
    line-height: 1.7;
  }

  .hero-copy .lead {
    font-size: 16px !important;
  }

  .hero-visual {
    min-height: 360px;
    background-position: center;
  }

  .lens,
  .cinematic-lens {
    width: 210px;
    max-width: 60vw;
  }

  .lens-core {
    font-size: 55px;
  }

  .data-tag {
    font-size: 9px;
    padding: 8px 10px;
    max-width: 125px;
  }

  .data-tag small {
    font-size: 8px;
  }

  .tag-one {
    top: 8%;
    left: 4%;
  }

  .tag-two {
    top: auto;
    bottom: 8%;
    left: 4%;
  }

  .tag-three {
    right: 4%;
    bottom: 8%;
  }

  /* Mobile pillars */

  .pillars {
    grid-template-columns: 1fr;
    padding: 28px 25px;
    gap: 0;
  }

  .pillars article {
    padding: 18px 0;
    border-right: 0;
    border-bottom: 1px solid #dddddd;
  }

  .pillars article:last-child {
    border-bottom: 0;
  }

  .pillars article > span {
    width: 42px;
    font-size: 34px;
    text-align: center;
  }

  .pillars h3 {
    font-size: 11px;
  }

  .pillars p {
    font-size: 12px;
  }

  /* Mobile about */

  .intro-section {
    grid-template-columns: 1fr;
  }

  .intro-image {
    min-height: 230px;
  }

  .intro-image img {
    min-height: 230px;
    max-height: 320px;
    object-fit: cover;
  }

  .intro-content {
    padding: 45px 25px;
  }

  .intro-content h2,
  .vision-section h2,
  .partners h2,
  .contact h2 {
    font-size: clamp(36px, 8vw, 48px);
  }

  .intro-content p:not(.eyebrow) {
    font-size: 14px;
    line-height: 1.75;
  }

  /* Mobile vision */

  .vision-section,
  .partners,
  .contact {
    padding: 60px 25px;
  }

  .vision-lead {
    font-size: 15px;
    line-height: 1.75;
  }

  .focus-grid {
    grid-template-columns: 1fr;
    gap: 26px;
    margin-top: 35px;
  }

  .focus-grid > div {
    padding-top: 20px;
  }

  .focus-grid h3 {
    font-size: 17px;
  }

  .focus-grid p {
    font-size: 13px;
  }

  /* Mobile collaboration cards */

  .partner-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .partners-intro {
    font-size: 14px;
    line-height: 1.75;
  }

  .partner-image {
    height: 205px;
  }

  .partner-content {
    padding: 20px;
  }

  .partner-content h3 {
    font-size: 14px;
  }

  .partner-content p {
    font-size: 13px;
  }

  .partner-grid > article:not(.partner-card) {
    min-height: 230px;
  }

  /* Mobile contact */

  .contact {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .contact > .btn {
    width: 100%;
    justify-content: space-between;
  }

  .email-address {
    grid-column: 1;
    margin: 0;
    font-size: 12px !important;
  }

  /* Mobile footer */

  footer {
    flex-direction: column;
    gap: 18px;
    padding: 30px 25px;
    line-height: 1.7;
  }

}

/* 19. EXTRA SMALL MOBILE */

@media (max-width: 390px) {

  .site-header {
    padding: 0 12px;
  }

  .brand {
    gap: 8px;
  }

  .brand-mark {
    width: 36px;
    height: 36px;
  }

  .brand-name strong {
    font-size: 19px;
  }

  .brand-name > span {
    font-size: 4.7px;
    letter-spacing: 0.45px;
  }

  .hero-copy {
    padding: 38px 20px 30px;
  }

  .hero h1 {
    font-size: clamp(39px, 10.5vw, 48px);
  }

  .hero-visual {
    min-height: 320px;
  }

  .lens,
  .cinematic-lens {
    width: 185px;
  }

  .intro-content,
  .vision-section,
  .partners,
  .contact {
    padding-left: 20px;
    padding-right: 20px;
  }

  .pillars {
    padding-left: 20px;
    padding-right: 20px;
  }

  .actions {
    flex-direction: column;
    align-items: stretch;
  }

  .actions .btn {
    width: 100%;
  }

}

/* 20. MENU ANIMATION */

@keyframes mobile-menu-in {
  from {
    opacity: 0;
    transform: translateY(-8px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* 21. ACCESSIBILITY AND REDUCED MOTION */

@media (prefers-reduced-motion: reduce) {

  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }

}

/* =====================================================
   END — THE NARRATIVE LENS LTD
   STYLESHEET VERSION 1.4
===================================================== */
