/* IZIA Branding: styles shared by every page (fonts, colours, buttons, navbar, inner page
   headings, footer and the load / scroll animations). Each page then loads its own file:
   home.css, story.css, portfolio.css or careers.css. */
/* Media-Gothic: same file the current theme uses (copied into /fonts) */
@font-face {
  font-family: 'Media-Gothic';
  src: url('../fonts/Media-Gothic.woff') format('woff');
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

/* ============ Design tokens (taken from the current site's theme) ============ */
:root {
  /* Surfaces: neutral charcoal greys */
  --bg: #1b1b1b;
  --bg-2: #232323;
  --bg-3: #2b2b2b;
  --bg-4: #333333;
  --line: rgba(255, 255, 255, 0.08);
  --line-2: rgba(255, 255, 255, 0.14);

  /* Gold accent (used sparingly: borders, icons, highlights) */
  /* Gold sampled from the IZIA logo: bright metallic base, light highlight, deep edge */
  --gold: #ecbc52;
  --gold-2: #c9902e;
  --gold-light: #fde08a;
  --gold-grad: linear-gradient(115deg, #c38a2c 0%, #f2c55c 30%, #fff1b5 50%, #f2c55c 68%, #c9902e 100%);

  /* Text */
  --text: #ffffff;
  --muted: #b9b9b9;
  --dim: #808080;

  /* Type */
  --f-head: 'Lato', sans-serif;
  --f-ui: 'Poppins', sans-serif;
  --f-display: 'Media-Gothic', 'Poppins', sans-serif;

  --radius: 6px;
  --wrap: 1200px;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 76px; }
body {
  font-family: var(--f-head);
  font-size: 16px;
  line-height: 1.7;
  color: var(--text);
  background: var(--bg-2);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
::selection { background: var(--gold); color: var(--bg); }

.wrap { width: min(var(--wrap), 100% - 40px); margin-inline: auto; }
/* Shiny metallic text. In split headings the gradient sits on each word, since the words animate. */
.gold, .a-split .gold .w > span {
  color: var(--gold);
  background: var(--gold-grad);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.a-split .gold { background: none; }
section { position: relative; }
.section { padding: clamp(32px, 3.4vw, 46px) 0; }
.alt { background: var(--bg); }

.eyebrow {
  font-family: var(--f-ui);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--gold);
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.eyebrow::before {
  content: "";
  width: 28px;
  height: 2px;
  background: linear-gradient(90deg, #c9902e 0%, #f2c55c 35%, #fff6d0 50%, #f2c55c 65%, #c9902e 100%) 0 0 / 300% 100%;
  animation: goldShine 2.8s linear infinite;
}
/* light sweeping along a gold line */
@keyframes goldShine { from { background-position: 100% 0; } to { background-position: 0 0; } }
h1, h2, h3, h4 { font-family: var(--f-head); font-weight: 700; line-height: 1.25; }
/* Media-Gothic has no apostrophe glyph, so render it in Poppins */
.ap { font-family: var(--f-ui); }
.sec-title { font-size: clamp(26px, 2.8vw, 36px); margin-top: 12px; }

/* ============ Buttons (outlined gold, like the current site) ============ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 26px;
  border: 1px solid var(--gold);
  border-radius: 2px;
  font-family: var(--f-ui);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--text);
  background: transparent;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  isolation: isolate;
  transition: color .35s var(--ease);
}
.btn::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: var(--gold-grad);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform .4s var(--ease);
}
.btn:hover { color: var(--bg); }
.btn:hover::before { transform: scaleX(1); transform-origin: left; }
.btn svg { width: 15px; height: 15px; transition: transform .35s var(--ease); }
.btn:hover svg { transform: translateX(3px); }
.btn-solid { background: var(--gold-grad); color: var(--bg); }
.btn-solid::before { background: var(--gold-light); }

:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }
.skip {
  position: absolute; left: -999px; top: 10px; z-index: 200;
  background: var(--gold); color: var(--bg); padding: 10px 16px;
}
.skip:focus { left: 10px; }

/* ============ Navbar ============ */
.nav {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 50;
  transition: background .35s var(--ease), box-shadow .35s var(--ease);
}
.nav.scrolled, .pf-open .nav {
  background: rgba(27, 27, 27, .92);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 1px 0 var(--line);
}
.nav-inner {
  width: min(1320px, 100% - 40px);
  margin-inline: auto;
  height: 84px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  transition: height .35s var(--ease);
}
.nav.scrolled .nav-inner, .pf-open .nav-inner { height: 68px; }
.nav-logo img { height: 46px; width: auto; transition: height .35s var(--ease); }
.nav.scrolled .nav-logo img, .pf-open .nav-logo img { height: 38px; }
.nav-links {
  display: flex;
  align-items: center;
  gap: 14px;
  list-style: none;
}
.nav-links a {
  position: relative;
  display: block;
  padding: 8px 13px;
  font-family: var(--f-ui);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--text);
  transition: color .3s;
}
.nav-links a::after {
  content: "";
  position: absolute;
  left: 13px;
  right: 13px;
  bottom: 2px;
  height: 1px;
  background: var(--gold-grad);
  transform: scaleX(0);
  transition: transform .35s var(--ease);
}
.nav-links a:hover, .nav-links a[aria-current="page"] { color: var(--gold); }
.nav-links a:hover::after, .nav-links a[aria-current="page"]::after { transform: scaleX(1); }
/* a gold circle with a gliding arrow invites a click on Portfolio; the word stays white, so it never reads as the active tab */
.nav-go {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  margin-left: 7px;
  border-radius: 50%;
  background: var(--gold-grad);
  color: #1b1b1b;
  vertical-align: -4px;
  overflow: hidden;
  transition: transform .3s var(--ease);
}
.nav-go svg { width: 10px; height: 10px; animation: navGo 2.6s var(--ease) infinite; }
a:hover > .nav-go { transform: scale(1.15); }
@keyframes navGo {
  0%, 55% { transform: none; }
  75% { transform: translate(16px, -16px); }
  75.01% { transform: translate(-16px, 16px); }
  100% { transform: none; }
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid var(--gold);
  background: transparent;
  cursor: pointer;
  position: relative;
}
.nav-toggle span {
  position: absolute;
  left: 12px;
  right: 12px;
  height: 1.5px;
  background: var(--text);
  transition: transform .35s var(--ease), opacity .3s;
}
.nav-toggle span:nth-child(1) { top: 15px; }
.nav-toggle span:nth-child(2) { top: 21px; }
.nav-toggle span:nth-child(3) { top: 27px; }
.nav-open .nav-toggle span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.nav-open .nav-toggle span:nth-child(2) { opacity: 0; }
.nav-open .nav-toggle span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* a panel that opens straight under the header; tapping the dimmed page closes it */
.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 40;
  background: rgba(0, 0, 0, .6);
  opacity: 0;
  visibility: hidden;
  transition: opacity .35s var(--ease), visibility .35s;
}
.nav-open .mobile-menu { opacity: 1; visibility: visible; }
.mobile-menu ul {
  list-style: none;
  max-height: 100%;
  overflow-y: auto;
  padding: 84px 20px 12px;
  background: var(--bg);
  box-shadow: 0 1px 0 var(--line);
}
.mobile-menu li a {
  display: block;
  padding: 12px 0;
  font-family: var(--f-ui);
  font-size: 18px;
  font-weight: 500;
  letter-spacing: .06em;
  text-transform: uppercase;
  border-bottom: 1px solid var(--line);
  transform: translateY(12px);
  opacity: 0;
  transition: transform .45s var(--ease), opacity .45s var(--ease), color .3s;
}
.mobile-menu li:last-child a { border-bottom: 0; }
.mobile-menu li a:hover, .mobile-menu li a[aria-current="page"] { color: var(--gold); }
.nav-open .mobile-menu li a { transform: none; opacity: 1; }

@media (max-width: 720px) {
  .nav-links { display: none; }
  .nav-toggle { display: block; }
}

/* Eye-catching link: a point of gold light runs around the edge while the text shines */
.spark {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  border-radius: 999px;
  background: rgba(236, 188, 82, .3);
  animation: sparkGlow 2.6s ease-in-out infinite;
  transition: transform .35s var(--ease);
}
.spark::before {
  content: "";
  position: absolute;
  left: 50%; top: 50%;
  z-index: -2;
  width: 140%;
  aspect-ratio: 1;
  background: conic-gradient(transparent 0 58%, #c9902e 72%, #fff1b5 92%, #f2c55c 100%);
  transform: translate(-50%, -50%);
  animation: sparkSpin 3s linear infinite;
}
.spark::after {
  content: "";
  position: absolute;
  inset: 1.5px;
  z-index: -1;
  border-radius: inherit;
  background-color: #1f1f1f;
  transition: background-color .35s;
}
.spark:hover { transform: translateY(-2px); }
.spark:hover::after { background-color: #333; }
.spark-text {
  color: var(--gold);
  background: linear-gradient(90deg, #e0a93f 0%, #f2c55c 35%, #fff6d0 50%, #f2c55c 65%, #e0a93f 100%) 0 0 / 300% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: goldShine 2.8s linear infinite;
}
@keyframes sparkSpin { to { transform: translate(-50%, -50%) rotate(360deg); } }
@keyframes sparkGlow {
  0%, 100% { box-shadow: 0 0 14px -6px rgba(236, 188, 82, .5); }
  50% { box-shadow: 0 0 26px -4px rgba(236, 188, 82, .85); }
}
.spark-btn {
  margin-top: 12px;
  padding: 13px 28px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--f-ui);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--gold);
}
.spark-btn svg { width: 16px; height: 16px; animation: sparkNudge 1.6s ease-in-out infinite; }
@keyframes sparkNudge { 50% { transform: translateX(4px); } }

/* ============ Inner page heading ============ */
.page-top { padding-top: clamp(124px, 11vw, 156px); }
.page-head { display: flex; align-items: center; gap: 22px; }
.page-title {
  font-family: var(--f-display);
  font-size: clamp(36px, 4.4vw, 58px);
  font-weight: 400;
  line-height: 1.1;
  letter-spacing: .01em;
  text-transform: uppercase;
  white-space: nowrap;
}
/* a gold line draws across from the title and ends at the subtitle */
.page-sub {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 18px;
  font-family: var(--f-ui);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--muted);
}
.page-sub::before {
  content: "";
  flex: 1;
  height: 2px;
  background: linear-gradient(90deg, #c9902e 0%, #f2c55c 35%, #fff6d0 50%, #f2c55c 65%, #c9902e 100%) 0 0 / 300% 100%;
  transform-origin: left;
  animation: goldShine 2.8s linear infinite;
}
.page-sub.in::before { animation: pageLine 1.2s var(--ease) backwards, goldShine 2.8s linear infinite; }
@keyframes pageLine { from { transform: scaleX(0); } }
.page-lead { max-width: 720px; margin-top: 10px; color: var(--muted); }
@media (max-width: 380px) { .page-title:not(.page-title-sm) { font-size: 30px; } }
@media (max-width: 640px) {
  .page-head { display: block; }
  .page-title { white-space: normal; }
  .page-sub { margin-top: 8px; font-size: 11px; letter-spacing: .14em; }
}

/* ============ Footer ============ */
.footer { background: var(--bg-3); border-top: 1px solid var(--line); }
.footer-cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  padding: 28px 0;
  border-bottom: 1px solid var(--line);
}
.footer-cta h2 {
  font-family: var(--f-display);
  font-weight: normal;
  font-size: clamp(24px, 3vw, 36px);
  letter-spacing: 1px;
}
.footer-top {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr 1.4fr;
  gap: 32px 40px;
  padding: 40px 0 34px;
}
.footer-brand img { height: 50px; width: auto; margin-bottom: 18px; }
.footer-brand p { color: var(--muted); max-width: 280px; font-size: 15px; }
.socials { display: flex; gap: 10px; margin-top: 22px; }
.socials a {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid var(--line-2);
  display: grid;
  place-items: center;
  color: var(--text);
  transition: background .3s, color .3s, border-color .3s;
}
.socials a:hover { background: var(--gold-grad); color: var(--bg); border-color: var(--gold); }
.socials svg { width: 16px; height: 16px; }
.footer h4 {
  font-family: var(--f-ui);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 18px;
}
.footer ul { list-style: none; }
.footer li + li { margin-top: 8px; }
.footer ul a { color: var(--muted); font-size: 15px; transition: color .3s; }
.footer ul a:hover { color: var(--gold); }
.office + .office { margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--line); }
.office strong { font-size: 16px; display: block; margin-bottom: 4px; }
.office p, .office a { color: var(--muted); font-size: 14px; line-height: 1.75; }
.office a { display: block; transition: color .3s; }
.office a:hover { color: var(--gold); }
.office .lbl { color: var(--text); font-weight: 700; }
.footer-bottom {
  border-top: 1px solid var(--line);
  padding: 16px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 14px;
  font-family: var(--f-ui);
  font-size: 13px;
  color: var(--gold);
}
.to-top {
  width: 38px;
  height: 38px;
  border: 1px solid var(--gold);
  background: none;
  color: var(--gold);
  display: grid;
  place-items: center;
  cursor: pointer;
  transition: background .3s, color .3s;
}
.to-top:hover { background: var(--gold-grad); color: var(--bg); }
.to-top svg { width: 15px; height: 15px; }
@media (max-width: 960px) { .footer-top { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .footer-top { grid-template-columns: 1fr; } }

/* ============ Load / scroll animations ============
   Classes are added by JS: .a-split (headings, word by word), .a-up (text), .a-card (cards).
   Keyframes use `backwards` fill so once an element has animated in, its normal hover
   transforms and transitions take over again. --d is the stagger delay set by JS. */
.js .a-up:not(.in), .js .a-card:not(.in), .js .a-cap:not(.in) { opacity: 0; }
.a-up.in { animation: aUp .8s var(--ease) backwards; animation-delay: var(--d, 0ms); }
.a-card.in { animation: aCard .9s var(--ease) backwards; animation-delay: var(--d, 0ms); }
.a-cap.in { animation: aCap 1s var(--ease) backwards; animation-delay: var(--d, 0ms); }
@keyframes aUp { from { opacity: 0; transform: translateY(24px); } }
@keyframes aCard { from { opacity: 0; transform: translateY(44px) scale(.97); } }
@keyframes aCap { from { opacity: 0; transform: translateX(140px); } }

/* Headings: each word slides up from behind a mask */
.a-split .w {
  display: inline-block;
  overflow: hidden;
  vertical-align: top;
  padding-bottom: .12em;
  margin-bottom: -.12em;
}
.a-split .w > span { display: inline-block; }
.js .a-split:not(.in) .w > span { transform: translateY(110%); }
.a-split.in .w > span {
  animation: aWord .9s var(--ease) backwards;
  animation-delay: calc(var(--d, 0ms) + var(--wi, 0) * 60ms);
}
@keyframes aWord { from { transform: translateY(110%); } }

/* Small details that play after their parent appears */
.eyebrow.in::before {
  transform-origin: left;
  animation: aLine .8s var(--ease) backwards, goldShine 2.8s linear infinite;
  animation-delay: calc(var(--d, 0ms) + .15s), 0s;
}
@keyframes aLine { from { transform: scaleX(0); } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js .a-up, .js .a-card, .js .a-cap { opacity: 1; }
  .js .a-split .w > span { transform: none; }
  html { scroll-behavior: auto; }
}
