/* =====================================================
   Coreframe — Construction X demo
   Inspired by Corebuild (corebuild.framer.website)
   ===================================================== */

:root {
  /* Brand */
  --accent:      #ff4f00;     /* saturated red-orange */
  --accent-hover:#ff6a2b;

  /* Neutrals */
  --ink:    #000000;
  --ink-2:  #0a0a0a;
  --ink-3:  #161616;
  --ink-4:  #222222;
  --line:   rgba(255,255,255,.12);
  --line-2: rgba(255,255,255,.06);
  --paper:  #ffffff;
  --paper-soft: #f4f1ec;
  --paper-2: #efebe2;

  /* Text on dark */
  --muted:  rgba(255,255,255,.7);
  --muted-2:rgba(255,255,255,.5);

  /* Text on light */
  --ink-soft:    #1a1a1a;
  --ink-muted:   #6b6b6b;

  /* Type */
  --display: "Instrument Sans", "Söhne", system-ui, -apple-system, sans-serif;
  --body:    "Inter", system-ui, -apple-system, sans-serif;

  /* Layout */
  --r-sm: 8px;
  --r-md: 14px;
  --r-lg: 22px;
  --r-pill: 999px;
  --ease: cubic-bezier(.2,.7,.2,1);
  --container: 1320px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; background: var(--ink); }
body {
  margin: 0;
  font-family: var(--body);
  background: var(--ink);
  color: var(--paper);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  line-height: 1.5;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
sup { font-size: 0.5em; vertical-align: super; opacity: .7; font-weight: 500; }

.container { width: min(var(--container), calc(100% - 48px)); margin-inline: auto; }

/* ----------- Type primitives ----------- */
.display {
  font-family: var(--display);
  font-weight: 500;
  font-size: clamp(34px, 4.8vw, 78px);
  line-height: 1.04;
  letter-spacing: -.02em;
  margin: 0 0 28px;
  max-width: 22ch;
}
.display em {
  font-style: italic;
  font-family: var(--display);
  font-weight: 500;
  color: inherit;
}
.display--dark { color: var(--ink-soft); }

.kicker {
  display: inline-block;
  font-family: var(--body);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--muted-2);
}
.kicker--dark { color: var(--ink-muted); }
.kicker--center { display: block; text-align: center; margin-bottom: 28px; }

.mini-dot {
  display: inline-block;
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--accent);
  margin-right: 8px;
  transform: translateY(-2px);
}

/* ----------- Buttons ----------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--body);
  font-weight: 500;
  font-size: 13px;
  letter-spacing: .08em;
  text-transform: uppercase;
  line-height: 1;
  padding: 12px 14px 12px 18px;
  border-radius: var(--r-pill);
  border: 1px solid transparent;
  background: transparent;
  cursor: pointer;
  transition: background .25s var(--ease), color .25s var(--ease),
              border-color .25s var(--ease), transform .25s var(--ease);
  white-space: nowrap;
}
.btn i {
  display: inline-grid; place-items: center;
  width: 22px; height: 22px;
  border-radius: 50%;
  font-style: normal;
  font-size: 11px;
  transition: transform .25s var(--ease);
  background: rgba(0,0,0,.18);
}
.btn:hover i { transform: translate(2px,-2px); }
.btn--lg { font-size: 14px; padding: 16px 18px 16px 22px; }
.btn--primary { background: var(--accent); color: #fff; }
.btn--primary:hover { background: var(--accent-hover); }
.btn--primary i { background: rgba(0,0,0,.25); }
.btn--ghost-light {
  color: #fff;
  border-color: rgba(255,255,255,.3);
}
.btn--ghost-light:hover { background: rgba(255,255,255,.08); border-color: rgba(255,255,255,.7); }
.btn--ghost-light i { background: rgba(255,255,255,.15); }
.btn--ghost-dark {
  color: var(--ink);
  border-color: rgba(0,0,0,.2);
}
.btn--ghost-dark:hover { background: rgba(0,0,0,.05); border-color: rgba(0,0,0,.6); }
.btn--ghost-dark i { background: rgba(0,0,0,.08); color: var(--ink); }
.btn--text-dark {
  color: var(--ink);
  padding-left: 0;
  padding-right: 0;
  border: 0;
  border-bottom: 1px solid var(--ink);
  border-radius: 0;
  font-size: 13px;
  letter-spacing: .04em;
  text-transform: none;
}
.btn--text-dark i { background: transparent; }

/* ----------- TOP BAR ============================================ */
.top {
  position: fixed;
  inset: 14px 14px auto 14px;
  z-index: 60;
  display: flex; justify-content: center;
  pointer-events: none;
}
.top__inner {
  pointer-events: auto;
  width: 100%;
  max-width: var(--container);
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 24px;
  padding: 10px 10px 10px 22px;
  background: rgba(10,10,10,.72);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid rgba(255,255,255,.08);
  border-radius: var(--r-pill);
  font-size: 12px;
  letter-spacing: .12em;
  text-transform: uppercase;
}
.top__brand {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--display);
  font-weight: 600;
  letter-spacing: .04em;
  font-size: 14px;
  color: #fff;
}
.brand-mark { color: var(--accent); font-size: 16px; }
.brand-word { font-weight: 600; }
.top__brand sup { font-size: 0.55em; }

.top__nav {
  display: flex;
  gap: 6px;
}
.top__nav a {
  font-size: 12px;
  font-weight: 500;
  letter-spacing: .14em;
  color: rgba(255,255,255,.75);
  padding: 10px 14px;
  border-radius: var(--r-pill);
  transition: background .2s var(--ease), color .2s var(--ease);
}
.top__nav a:hover { background: rgba(255,255,255,.06); color: #fff; }
.top__nav a.muted { color: var(--muted-2); }

.top__right {
  display: flex; align-items: center; gap: 14px;
  justify-content: flex-end;
}
.top__social {
  display: flex; gap: 14px;
  font-size: 11px;
  letter-spacing: .12em;
  color: var(--muted);
}
.top__social a { transition: color .2s var(--ease); }
.top__social a:hover { color: var(--accent); }

.top__burger { display: none; background: transparent; border: 0; padding: 8px; cursor: pointer; }
.top__burger span { display: block; width: 22px; height: 2px; background: #fff; margin: 5px 0; }
.top__sheet {
  position: fixed; top: 84px; left: 14px; right: 14px;
  background: rgba(10,10,10,.96);
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 22px;
  padding: 20px;
  display: none;
  flex-direction: column;
  gap: 6px;
  z-index: 59;
  letter-spacing: .14em;
  text-transform: uppercase;
  font-size: 13px;
}
.top__sheet a { padding: 14px; border-radius: 12px; color: #fff; }
.top__sheet a:hover { background: rgba(255,255,255,.06); }
.top__sheet.is-open { display: flex; }

/* ----------- HERO ============================================ */
.hero {
  position: relative;
  height: 200vh; /* sticky parallax frame */
}
.hero__image-wrap {
  position: sticky;
  top: 0;
  height: 100vh;
  overflow: hidden;
}
.hero__image {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center 30%;
  transform: scale(1);
  transition: transform .5s var(--ease);
  will-change: transform;
}
.hero__scrim {
  position: absolute; inset: 0;
  background:
    linear-gradient(180deg, rgba(0,0,0,.45) 0%, rgba(0,0,0,.15) 30%, rgba(0,0,0,.85) 100%);
}
.hero__copy {
  position: absolute;
  inset: auto 0 0 0;
  padding: 0 24px 56px;
  z-index: 2;
}
.hero__copy-inner {
  width: min(var(--container), calc(100% - 24px));
  margin: 0 auto;
}
.hero__title {
  font-family: var(--display);
  font-weight: 500;
  font-size: clamp(34px, 5.4vw, 86px);
  line-height: 1.02;
  letter-spacing: -.022em;
  margin: 16px 0 28px;
  max-width: 22ch;
}
.hero__title em {
  font-style: italic;
  font-weight: 500;
  color: var(--accent);
}
.hero__meta {
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--muted);
  border-top: 1px solid var(--line);
  padding-top: 18px;
  margin-top: 26px;
}
.hero__loc::before { content: "◆ "; color: var(--accent); font-size: 10px; margin-right: 6px; }

/* ----------- MISSION (light) ============================================ */
.mission {
  background: var(--paper);
  color: var(--ink-soft);
  padding: 120px 0;
}
.mission__grid {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 60px;
  align-items: start;
}
.mission__head .kicker { padding-top: 12px; display: inline-block; }
.mission .display em { color: var(--accent); }
.mission__cta-row { display: flex; gap: 18px; flex-wrap: wrap; margin-top: 36px; }

/* ----------- FACTS (dark) ============================================ */
.facts {
  background: var(--ink);
  padding: 100px 0 120px;
  border-top: 1px solid var(--line-2);
  border-bottom: 1px solid var(--line-2);
}
.facts__grid {
  display: grid;
  grid-template-columns: 240px repeat(3, 1fr);
  gap: 40px;
  align-items: end;
}
.fact .kicker { padding-bottom: 18px; display: inline-block; }
.fact__num {
  display: block;
  font-family: var(--display);
  font-weight: 500;
  font-size: clamp(60px, 8vw, 140px);
  line-height: 1;
  letter-spacing: -.04em;
  color: #fff;
}
.fact__num sup {
  font-size: 0.35em;
  vertical-align: super;
  color: var(--accent);
  font-weight: 500;
  opacity: 1;
  margin-left: 4px;
}
.fact__lbl {
  display: block;
  margin-top: 18px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
  font-size: 14px;
  letter-spacing: .04em;
  color: var(--muted);
}

/* ----------- VALUES (dark, image cards) ============================================ */
.values { background: var(--ink); padding: 60px 0 120px; }
.values__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
.value-card {
  position: relative;
  border-radius: var(--r-lg);
  overflow: hidden;
  background: var(--ink-3);
  aspect-ratio: 3/4;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  transition: transform .35s var(--ease);
}
.value-card:hover { transform: translateY(-4px); }
.value-card__media {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  transition: transform .8s var(--ease);
}
.value-card:hover .value-card__media { transform: scale(1.05); }
.value-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0) 30%, rgba(0,0,0,.85) 100%);
  z-index: 1;
}
.value-card__body { position: relative; z-index: 2; padding: 28px 28px 30px; }
.value-card__body .kicker { color: var(--accent); margin-bottom: 12px; display: inline-block; }
.value-card__body h3 {
  font-family: var(--display);
  font-weight: 500;
  font-size: 28px;
  letter-spacing: -.012em;
  margin: 0 0 12px;
  color: #fff;
}
.value-card__body p {
  color: rgba(255,255,255,.75);
  margin: 0;
  font-size: 14.5px;
  max-width: 36ch;
}

/* ----------- LOGOS MARQUEE ============================================ */
.logos {
  background: var(--ink);
  padding: 60px 0 60px;
  border-top: 1px solid var(--line-2);
}
.logos__marquee { overflow: hidden; margin-top: 30px; }
.logos__track {
  display: inline-flex;
  gap: 60px;
  align-items: center;
  white-space: nowrap;
  animation: scroll-x 38s linear infinite;
  font-family: var(--display);
  font-weight: 500;
  font-size: clamp(28px, 3.2vw, 48px);
  letter-spacing: -.01em;
  color: rgba(255,255,255,.5);
}
.logos__track > span:nth-child(even) {
  font-size: 14px;
  color: var(--accent);
  letter-spacing: 0;
}
@keyframes scroll-x {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* ----------- OUR WORK (light) ============================================ */
.work {
  background: var(--paper);
  color: var(--ink-soft);
  padding: 140px 0;
}
.work__head { margin-bottom: 80px; }
.work__head .kicker { margin-bottom: 22px; display: inline-block; }
.work .display em { color: var(--accent); font-style: italic; }

.work__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  border-top: 1px solid rgba(0,0,0,.1);
}
.work-card {
  display: grid;
  grid-template-columns: 100px 1fr auto;
  gap: 32px;
  align-items: start;
  padding: 40px 0;
  border-bottom: 1px solid rgba(0,0,0,.1);
  position: relative;
  cursor: pointer;
  transition: padding .3s var(--ease);
}
.work-card:nth-child(odd)  { border-right: 1px solid rgba(0,0,0,.1); padding-right: 40px; }
.work-card:nth-child(even) { padding-left: 40px; }
.work-card:hover { padding-left: 56px; }
.work-card:nth-child(odd):hover { padding-left: 16px; padding-right: 24px; }
.work-card__num {
  font-family: var(--display);
  font-weight: 500;
  font-size: 14px;
  letter-spacing: .12em;
  color: var(--accent);
  padding-top: 6px;
}
.work-card__body h3 {
  font-family: var(--display);
  font-weight: 500;
  font-size: clamp(22px, 2vw, 30px);
  letter-spacing: -.015em;
  margin: 0 0 10px;
  color: var(--ink-soft);
}
.work-card__body p {
  margin: 0;
  color: var(--ink-muted);
  font-size: 15px;
  max-width: 44ch;
}
.work-card__more {
  align-self: center;
  font-size: 13px;
  letter-spacing: .04em;
  color: var(--ink-soft);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
}
.work-card__more i { font-style: normal; transition: transform .25s var(--ease); }
.work-card:hover .work-card__more i { transform: translate(2px,-2px); }

/* ----------- CTA BAND ============================================ */
.cta-band {
  position: relative;
  padding: 160px 0;
  overflow: hidden;
  color: #fff;
}
.cta-band__image {
  position: absolute; inset: 0;
  background-size: cover;
  background-position: center;
  transform: scale(1.02);
}
.cta-band__scrim {
  position: absolute; inset: 0;
  background:
    linear-gradient(135deg, rgba(0,0,0,.78) 0%, rgba(0,0,0,.4) 70%, rgba(255,79,0,.35) 100%);
}
.cta-band__content { position: relative; z-index: 1; text-align: center; }
.cta-band .display { margin-inline: auto; max-width: 22ch; }
.cta-band__content p { color: var(--muted); max-width: 50ch; margin: 0 auto 36px; font-size: 17px; }
.cta-band__actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

/* ----------- TESTIMONIALS ============================================ */
.quotes {
  background: var(--paper-soft);
  color: var(--ink-soft);
  padding: 120px 0 130px;
}
.quotes__head { margin-bottom: 64px; }
.quotes__head .kicker { margin-bottom: 22px; display: inline-block; }
.quotes__marquee { overflow: hidden; padding-bottom: 4px; }
.quotes__track {
  display: inline-flex;
  gap: 22px;
  white-space: normal;
  animation: scroll-x 60s linear infinite;
  padding: 0 24px;
}
.quote {
  flex: 0 0 480px;
  margin: 0;
  background: #fff;
  border-radius: var(--r-lg);
  padding: 36px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 24px;
  position: relative;
  border: 1px solid rgba(0,0,0,.06);
}
.quote::before {
  content: "“";
  font-family: var(--display);
  font-size: 84px;
  color: var(--accent);
  line-height: 0.7;
  margin-bottom: -6px;
}
.quote blockquote {
  margin: 0;
  font-family: var(--display);
  font-weight: 500;
  font-size: 19px;
  line-height: 1.4;
  letter-spacing: -.008em;
  color: var(--ink-soft);
  white-space: normal;
}
.quote figcaption {
  display: flex; flex-direction: column; gap: 2px;
  border-top: 1px solid rgba(0,0,0,.08);
  padding-top: 18px;
}
.quote figcaption strong { font-weight: 600; color: var(--ink-soft); }
.quote figcaption span {
  font-size: 12px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--ink-muted);
}

/* ----------- NEWS ============================================ */
.news {
  background: var(--paper);
  color: var(--ink-soft);
  padding: 120px 0 140px;
}
.news__head { margin-bottom: 72px; }
.news__head .kicker { margin-bottom: 22px; display: inline-block; }
.news .display em { color: var(--accent); }
.news__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}
.news-card { transition: transform .25s var(--ease); }
.news-card:hover { transform: translateY(-4px); }
.news-card__media {
  aspect-ratio: 4/3;
  border-radius: var(--r-lg);
  background-size: cover;
  background-position: center;
  margin-bottom: 22px;
  overflow: hidden;
}
.news-card__meta {
  display: flex; gap: 10px;
  font-size: 12px;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--ink-muted);
}
.dot-sep { color: var(--accent); }
.news-card h3 {
  font-family: var(--display);
  font-weight: 500;
  font-size: 22px;
  line-height: 1.2;
  letter-spacing: -.012em;
  margin: 12px 0 18px;
  color: var(--ink-soft);
  max-width: 24ch;
}
.news-card__link {
  display: inline-flex;
  gap: 6px;
  font-size: 13px;
  letter-spacing: .04em;
  border-bottom: 1px solid currentColor;
  padding-bottom: 2px;
  color: var(--ink-soft);
}
.news-card__link i { font-style: normal; transition: transform .25s var(--ease); }
.news-card:hover .news-card__link i { transform: translate(2px,-2px); }

/* ----------- FOOTER ============================================ */
.footer {
  background: var(--ink);
  color: #fff;
  padding: 120px 0 36px;
}
.footer__top {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 80px;
  padding-bottom: 64px;
  border-bottom: 1px solid var(--line);
}
.footer__display {
  font-family: var(--display);
  font-weight: 500;
  font-size: clamp(32px, 4vw, 64px);
  line-height: 1.05;
  letter-spacing: -.02em;
  margin: 0;
  max-width: 18ch;
}
.footer__display em { color: var(--accent); font-style: italic; }

.footer__notify { display: flex; flex-direction: column; gap: 18px; }
.footer__notify-row {
  display: grid;
  grid-template-columns: 1fr 48px;
  gap: 8px;
  border-bottom: 1px solid var(--line);
  padding: 14px 0;
  align-items: center;
}
.footer__notify input[type="email"] {
  background: transparent;
  border: 0;
  color: #fff;
  font-family: var(--body);
  font-size: 16px;
  outline: none;
}
.footer__notify input::placeholder { color: var(--muted-2); }
.footer__notify button {
  width: 44px; height: 44px;
  border-radius: 50%;
  background: var(--accent);
  border: 0;
  color: #fff;
  cursor: pointer;
  font-size: 14px;
  display: grid; place-items: center;
  transition: background .25s var(--ease), transform .25s var(--ease);
}
.footer__notify button:hover { background: var(--accent-hover); transform: translate(2px,-2px); }
.footer__notify button i { font-style: normal; }
.footer__checkbox {
  display: flex; gap: 10px; align-items: center;
  font-size: 13px;
  color: var(--muted);
}
.footer__checkbox input { accent-color: var(--accent); }
.notify-ok { color: var(--accent); margin: 0; }

.footer__cols {
  display: grid;
  grid-template-columns: 1fr 1fr 1.5fr;
  gap: 60px;
  padding: 64px 0;
}
.footer__col .kicker { display: block; margin-bottom: 22px; }
.footer__col ul {
  list-style: none; padding: 0; margin: 0;
  display: flex; flex-direction: column; gap: 14px;
  font-family: var(--display);
  font-weight: 500;
  font-size: 18px;
  letter-spacing: -.012em;
}
.footer__col a { transition: color .2s var(--ease); display: inline-flex; gap: 6px; align-items: center; }
.footer__col a:hover { color: var(--accent); }
.footer__col a i { font-style: normal; font-size: 12px; opacity: .6; }

.footer__brand p { color: var(--muted); font-size: 14px; line-height: 1.55; margin: 0 0 16px; max-width: 36ch; }
.footer__addr { font-family: var(--display); font-size: 14px !important; }

.footer__bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid var(--line);
  padding-top: 28px;
  font-size: 12px;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--muted-2);
}
.back-top {
  font-family: var(--display);
  font-size: 13px;
  letter-spacing: 0;
  text-transform: none;
  color: #fff;
  display: inline-flex; gap: 6px;
}
.back-top:hover { color: var(--accent); }

/* ----------- RESPONSIVE ============================================ */
@media (max-width: 1100px) {
  .top__nav { gap: 0; }
  .top__nav a { padding: 10px 10px; font-size: 11px; }
  .top__social { display: none; }
}
@media (max-width: 920px) {
  .top__nav, .top__right { display: none; }
  .top__burger { display: block; justify-self: end; }
  .top__inner { grid-template-columns: 1fr auto; padding: 10px 14px; }

  .mission__grid, .facts__grid, .values__grid, .work__grid,
  .news__grid, .footer__top, .footer__cols { grid-template-columns: 1fr; gap: 40px; }
  .work-card,
  .work-card:nth-child(odd),
  .work-card:nth-child(even) { padding: 28px 0 !important; border-right: 0 !important; }
  .work__head, .news__head, .quotes__head { margin-bottom: 44px; }
  .quote { flex: 0 0 320px; padding: 28px; }
  .hero { height: 140vh; }
}
@media (max-width: 560px) {
  .facts__grid { grid-template-columns: 1fr; }
  .values__grid { grid-template-columns: 1fr; }
  .news__grid { grid-template-columns: 1fr; }
  .hero__meta { flex-direction: column; gap: 6px; align-items: flex-start; }
}
