/* ============================
   VINLANDIC SYSTEMS — STYLES
   Black / white / sharp / modern
   ============================ */

:root {
  --black: #000000;
  --white: #ffffff;
  --off-white: #f5f5f5;
  --grey-900: #0a0a0a;
  --grey-800: #1a1a1a;
  --grey-700: #2a2a2a;
  --grey-500: #888888;
  --grey-300: #d4d4d4;
  --grey-100: #f0f0f0;
  --red: #c8102e;
  --font-sans: -apple-system, BlinkMacSystemFont, "Helvetica Neue", "Arial", sans-serif;
  --font-mono: "SF Mono", "JetBrains Mono", "Menlo", monospace;
  --max-w: 1280px;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; }
/* Performance: avoid scroll-jank by not using will-change or heavy filters on scroll-triggered elements */

body {
  font-family: var(--font-sans);
  background: var(--white);
  color: var(--black);
  line-height: 1.6;
  overflow-x: hidden;
}

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

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

/* ===== NAV ===== */
#nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  transition: background 0.4s var(--ease), border-color 0.4s var(--ease);
  border-bottom: 1px solid transparent;
}
#nav.scrolled {
  background: rgba(255,255,255,0.98);
  border-bottom-color: var(--grey-100);
}
#nav.scrolled .nav-links a { color: var(--grey-700); }
#nav.scrolled .nav-links a:hover { color: var(--black); }
#nav.scrolled .nav-cta { border-color: var(--black); color: var(--black) !important; }
#nav.scrolled .nav-cta:hover { background: var(--black); color: var(--white) !important; }
#nav.scrolled .nav-mark { filter: none; }
#nav.scrolled .nav-toggle span { background: var(--black); }
.nav-inner {
  max-width: var(--max-w); margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px 32px;
}
.nav-mark { height: 36px; width: auto; filter: brightness(0) invert(1); }
.nav-links { display: flex; gap: 32px; align-items: center; }
.nav-links a {
  font-size: 14px; font-weight: 500; letter-spacing: 0.02em;
  color: var(--grey-300); transition: color 0.2s;
}
.nav-links a:hover { color: var(--white); }
.nav-cta {
  border: 1px solid var(--white); padding: 8px 20px;
  color: var(--white) !important; transition: all 0.2s;
}
.nav-cta:hover { background: var(--white); color: var(--black) !important; }
.nav-toggle { display: none; flex-direction: column; gap: 5px; background: none; border: none; cursor: pointer; padding: 8px; }
.nav-toggle span { width: 24px; height: 2px; background: var(--black); transition: 0.3s; }

/* ===== HERO ===== */
#hero {
  position: relative; min-height: 100vh;
  display: flex; align-items: center; justify-content: center;
  text-align: center; color: var(--white);
  overflow: hidden;
}
.hero-bg {
  position: absolute; inset: 0;
  z-index: -2;
  background: var(--black);
}
.hero-bg-img {
  width: 100%; height: 100%; object-fit: cover;
  opacity: 0.35;
  filter: grayscale(100%) contrast(1.1);
}
.hero-bg-overlay {
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse at 50% 100%, rgba(0,0,0,0.6) 0%, transparent 70%),
    linear-gradient(180deg, rgba(0,0,0,0.7) 0%, rgba(0,0,0,0.5) 50%, rgba(0,0,0,0.8) 100%);
}
.hero-content { max-width: 800px; padding: 120px 32px 80px; position: relative; z-index: 1; }
.hero-mark { margin: 0 auto 32px; width: 48px; }
.hero-mark img { width: 48px; height: auto; margin: 0 auto; opacity: 0; animation: fadeIn 1.2s var(--ease) 0.2s forwards; }
.hero-title {
  font-size: clamp(48px, 8vw, 96px); font-weight: 800; line-height: 0.95;
  letter-spacing: -0.03em; margin-bottom: 28px;
  opacity: 0; animation: fadeUp 1s var(--ease) 0.4s forwards;
}
.hero-sub {
  font-size: clamp(16px, 2vw, 20px); color: var(--grey-300); max-width: 560px; margin: 0 auto 48px;
  opacity: 0; animation: fadeUp 1s var(--ease) 0.6s forwards;
}
.hero-actions {
  display: flex; gap: 16px; justify-content: center;
  opacity: 0; animation: fadeUp 1s var(--ease) 0.8s forwards;
}
.hero-scroll {
  position: absolute; bottom: 32px; left: 50%; transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  color: var(--grey-500); font-size: 11px; letter-spacing: 0.2em; text-transform: uppercase;
}
.hero-scroll span { width: 1px; height: 40px; background: var(--grey-500); animation: scrollLine 2s ease-in-out infinite; }

@keyframes fadeIn { to { opacity: 1; } }
@keyframes fadeUp { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: translateY(0); } }
@keyframes scrollLine { 0%, 100% { transform: scaleY(0.3); transform-origin: top; } 50% { transform: scaleY(1); transform-origin: top; } }

/* ===== BUTTONS ===== */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 14px 32px; font-size: 14px; font-weight: 600; letter-spacing: 0.03em;
  border: 1px solid transparent; cursor: pointer; transition: all 0.3s var(--ease);
}
.btn-primary { background: var(--white); color: var(--black); }
.btn-primary:hover { background: transparent; color: var(--white); border-color: var(--white); }
.btn-ghost { border-color: var(--grey-500); color: var(--white); }
.btn-ghost:hover { border-color: var(--white); background: rgba(255,255,255,0.05); }

/* ===== SECTIONS — full-bleed ===== */
section { padding: 120px 32px; }
.section-inner { max-width: var(--max-w); margin: 0 auto; }
.section-head { margin-bottom: 80px; max-width: var(--max-w); margin-left: auto; margin-right: auto; }
.section-head { margin-bottom: 80px; }
.section-num {
  display: block; font-family: var(--font-mono); font-size: 12px;
  color: var(--grey-500); letter-spacing: 0.2em; margin-bottom: 16px;
}
.section-head h2 {
  font-size: clamp(36px, 6vw, 64px); font-weight: 800; letter-spacing: -0.02em; margin-bottom: 16px;
}
.section-tag { font-size: 18px; color: var(--grey-500); max-width: 600px; }

/* ===== PRODUCTS ===== */
.product-grid {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 2px;
  background: var(--grey-100);
  border: 1px solid var(--grey-100);
  max-width: var(--max-w); margin: 0 auto;
}
.product-card {
  background: var(--white); padding: 0;
  display: flex; flex-direction: column;
  transition: background 0.4s var(--ease);
}
.product-card:hover { background: var(--off-white); }
.product-visual {
  position: relative; height: 280px; overflow: hidden;
  display: flex; align-items: center; justify-content: center;
  background: var(--grey-900);
}
.product-img {
  width: 100%; height: 100%; object-fit: cover;
  filter: grayscale(100%) contrast(1.05);
  transition: filter 0.4s var(--ease), transform 0.6s var(--ease);
}
.product-card:hover .product-img { filter: grayscale(0%) contrast(1); transform: scale(1.03); }
.product-icon-overlay {
  position: absolute; bottom: 20px; left: 20px;
  width: 48px; height: 48px; color: var(--white);
  background: rgba(0,0,0,0.7); border-radius: 4px;
  display: flex; align-items: center; justify-content: center;
  padding: 10px;
}
.product-icon-overlay svg { width: 100%; height: 100%; }
.product-info { padding: 40px; }
.product-label {
  font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.2em;
  text-transform: uppercase; color: var(--grey-500);
}
.product-info h3 {
  font-size: 28px; font-weight: 700; letter-spacing: -0.01em; margin: 8px 0 16px;
}
.product-info p { font-size: 16px; color: var(--grey-500); line-height: 1.7; }
.product-status {
  display: flex; align-items: center; gap: 8px;
  font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.1em;
  color: var(--grey-500); text-transform: uppercase; margin-top: 8px;
}
.dot { width: 6px; height: 6px; border-radius: 50%; }
.dot-rd { background: var(--red); animation: pulse 2s ease-in-out infinite; }
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.4; } }

/* ===== FIELD OPERATIONS ===== */
.field-ops { background: var(--grey-900); color: var(--white); }
.field-ops .section-head h2, .field-ops .section-num { color: var(--white); }
.field-grid {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 2px;
  max-width: var(--max-w); margin: 0 auto;
}
.field-item {
  position: relative; overflow: hidden;
  aspect-ratio: 2/3; background: var(--black);
}
.field-item img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 0.6s var(--ease);
}
.field-item:hover img { transform: scale(1.05); }
.field-label {
  position: absolute; bottom: 0; left: 0; right: 0;
  padding: 32px; 
  background: linear-gradient(0deg, rgba(0,0,0,0.9) 0%, transparent 100%);
}
.field-label span {
  display: block; font-size: 20px; font-weight: 700;
  margin-bottom: 8px; color: var(--white);
}
.field-label p { font-size: 14px; color: var(--grey-300); line-height: 1.5; }
.field-disclaimer {
  text-align: center; margin-top: 40px;
  font-family: var(--font-mono); font-size: 12px;
  color: var(--grey-500); letter-spacing: 0.1em; text-transform: uppercase;
}

/* ===== ABOUT ===== */
#about { background: var(--off-white); }
.about-content {
  max-width: var(--max-w); margin: 0 auto;
  display: grid; grid-template-columns: 1.5fr 1fr; gap: 80px; align-items: start;
}
.about-text h3 { font-size: 36px; font-weight: 700; letter-spacing: -0.01em; margin-bottom: 32px; }
.about-text p { font-size: 18px; color: var(--grey-700); margin-bottom: 20px; line-height: 1.7; }
.about-stats { display: flex; flex-direction: column; gap: 40px; padding-top: 12px; }
.stat { border-left: 2px solid var(--black); padding-left: 24px; }
.stat-num { display: block; font-size: 48px; font-weight: 800; letter-spacing: -0.02em; }
.stat-label { font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.1em; color: var(--grey-500); text-transform: uppercase; }

/* ===== TEAM ===== */
.team-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; }
.team-card {
  border: 1px solid var(--grey-100); padding: 40px; text-align: center;
  transition: border-color 0.3s var(--ease), background 0.3s var(--ease);
}
.team-card:hover { border-color: var(--black); }
.team-photo {
  width: 120px; height: 120px; border-radius: 50%; margin: 0 auto 24px;
  overflow: hidden; background: var(--grey-900);
}
.team-photo img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(100%); }
.team-photo-placeholder {
  width: 100px; height: 100px; border-radius: 50%; margin: 0 auto 24px;
  background: var(--grey-100); display: flex; align-items: center; justify-content: center;
  font-size: 28px; font-weight: 700; color: var(--grey-500);
}
.team-card h3 { font-size: 20px; font-weight: 700; margin-bottom: 4px; }
.team-role {
  display: block; font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.15em;
  text-transform: uppercase; color: var(--grey-500); margin-bottom: 16px;
}
.team-card p { font-size: 14px; color: var(--grey-500); }
.team-empty { border-style: dashed; border-color: var(--grey-300); }
.team-empty .team-photo-placeholder { background: transparent; border: 2px dashed var(--grey-300); font-size: 36px; }

/* ===== PARTNERS ===== */
#partners { background: var(--grey-900); color: var(--white); }
#partners .section-head h2, #partners .section-num { color: var(--white); }
.partners-content { max-width: var(--max-w); margin: 0 auto; }
.partners-content > p { font-size: 18px; color: var(--grey-300); margin-bottom: 48px; max-width: 600px; }
.partner-feature {
  display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center;
  margin-bottom: 64px; padding-bottom: 64px; border-bottom: 1px solid var(--grey-700);
}
.partner-feature-reverse .partner-feature-image { order: 2; }
.partner-feature-reverse .partner-feature-text { order: 1; }
.partner-feature:last-of-type { border-bottom: none; margin-bottom: 32px; padding-bottom: 32px; }
.partner-feature-image { overflow: hidden; aspect-ratio: 4/3; }
.partner-feature-image img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(100%) contrast(1.05); }
.partner-feature-text .partner-label {
  display: block; font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.2em;
  text-transform: uppercase; color: var(--grey-500); margin-bottom: 12px;
}
.partner-feature-text h3 { font-size: 32px; font-weight: 700; margin-bottom: 16px; color: var(--white); }
.partner-feature-text p { font-size: 16px; color: var(--grey-300); line-height: 1.7; }
.partners-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-bottom: 48px;
}
.partner-placeholder {
  border: 1px solid var(--grey-700); padding: 40px 24px; text-align: center;
  font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--grey-500);
  transition: border-color 0.3s, color 0.3s;
}
.partner-placeholder:hover { border-color: var(--white); color: var(--white); }
.partners-note { color: var(--grey-500); font-size: 15px; }
.partners-note a { color: var(--white); border-bottom: 1px solid var(--grey-500); }
.partners-note a:hover { border-color: var(--white); }

/* ===== NEWS ===== */
.news-list { max-width: 720px; }
.news-empty { text-align: center; padding: 80px 40px; }
.news-empty h3 { font-size: 28px; font-weight: 700; margin-bottom: 16px; }
.news-empty p { font-size: 16px; color: var(--grey-500); margin-bottom: 8px; }
.news-empty a { color: var(--black); border-bottom: 1px solid var(--black); }

/* ===== CONTACT ===== */
#contact { background: var(--black); color: var(--white); padding: 120px 32px; }
#contact .section-head h2, #contact .section-num { color: var(--white); }
.contact-content {
  display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: start;
  max-width: var(--max-w); margin: 0 auto;
}
.contact-info h3 { font-size: 32px; font-weight: 700; margin-bottom: 24px; letter-spacing: -0.01em; }
.contact-info p { color: var(--grey-300); margin-bottom: 16px; font-size: 16px; }
.contact-email {
  display: inline-block; font-size: 20px; font-weight: 600;
  color: var(--white); border-bottom: 2px solid var(--white); padding-bottom: 4px;
  margin-bottom: 16px;
}
.contact-email-sm {
  display: inline-block; font-size: 16px; font-weight: 600;
  color: var(--grey-300); border-bottom: 1px solid var(--grey-700); padding-bottom: 3px;
  margin-bottom: 16px;
}
.contact-direct { font-size: 15px; color: var(--grey-500) !important; }
.contact-direct a { color: var(--grey-300); border-bottom: 1px solid var(--grey-700); }
.contact-loc { font-size: 14px; color: var(--grey-500); margin-top: 32px; font-family: var(--font-mono); letter-spacing: 0.05em; }
.contact-info-secondary { padding-left: 40px; border-left: 1px solid var(--grey-800); }

/* ===== FOOTER ===== */
footer {
  background: var(--black); color: var(--grey-500);
  border-top: 1px solid var(--grey-800); padding: 40px 32px;
}
.footer-inner {
  max-width: var(--max-w); margin: 0 auto;
  display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 24px;
}
.footer-left { display: flex; align-items: center; gap: 16px; }
.footer-mark { width: 32px; height: auto; }
.footer-name { display: block; font-size: 14px; font-weight: 700; letter-spacing: 0.05em; color: var(--white); }
.footer-tag { display: block; font-size: 12px; color: var(--grey-500); }
.footer-right { display: flex; align-items: center; gap: 32px; font-size: 13px; }
.footer-right a { color: var(--grey-300); }
.footer-right a:hover { color: var(--white); }
.footer-loc { font-family: var(--font-mono); letter-spacing: 0.1em; text-transform: uppercase; }
.footer-copy { color: var(--grey-700); font-size: 12px; }

/* ===== REVEAL ANIMATION ===== */
.reveal { opacity: 0; transform: translateY(32px); transition: opacity 0.8s var(--ease), transform 0.8s var(--ease); }
.revealed { opacity: 1; transform: translateY(0); }
.product-card.reveal { transition-delay: 0.05s; }
.product-card.reveal:nth-child(2) { transition-delay: 0.1s; }
.product-card.reveal:nth-child(3) { transition-delay: 0.15s; }
.product-card.reveal:nth-child(4) { transition-delay: 0.2s; }
.team-card.reveal:nth-child(2) { transition-delay: 0.1s; }
.team-card.reveal:nth-child(3) { transition-delay: 0.2s; }

/* ===== HERITAGE ===== */
#heritage { background: var(--white); }
.heritage-intro { max-width: 720px; margin: 0 auto 80px; text-align: center; }
.heritage-intro p { font-size: 18px; color: var(--grey-700); line-height: 1.7; }
.heritage-timeline {
  max-width: var(--max-w); margin: 0 auto;
  display: flex; flex-direction: column; gap: 80px;
}
.heritage-item {
  display: grid; grid-template-columns: 100px 1fr 1.2fr; gap: 40px; align-items: center;
}
.heritage-reverse .heritage-image { order: 3; }
.heritage-reverse .heritage-text { order: 2; }
.heritage-reverse .heritage-year { order: 1; }
.heritage-year {
  font-family: var(--font-mono); font-size: 14px; font-weight: 700;
  letter-spacing: 0.1em; color: var(--grey-500);
  text-align: right; padding-top: 8px;
}
.heritage-reverse .heritage-year { text-align: left; }
.heritage-image { overflow: hidden; aspect-ratio: 4/3; background: var(--grey-900); }
.heritage-image img {
  width: 100%; height: 100%; object-fit: cover;
  filter: grayscale(100%) contrast(1.05);
  transition: filter 0.5s var(--ease), transform 0.6s var(--ease);
}
.heritage-item:hover .heritage-image img { filter: grayscale(0%) contrast(1); transform: scale(1.03); }
.heritage-text h3 { font-size: 24px; font-weight: 700; margin-bottom: 12px; }
.heritage-text p { font-size: 15px; color: var(--grey-700); line-height: 1.7; }

/* ===== RESPONSIVE ===== */
@media (max-width: 900px) {
  .nav-links { display: none; }
  .nav-toggle { display: flex; }
  body.menu-open .nav-links {
    display: flex; flex-direction: column; position: absolute; top: 100%; left: 0; right: 0;
    background: var(--white); padding: 24px 32px; gap: 20px; border-bottom: 1px solid var(--grey-100);
  }
  .field-grid { grid-template-columns: 1fr; }
  .about-content { grid-template-columns: 1fr; gap: 48px; }
  .team-grid { grid-template-columns: 1fr; }
  .partners-grid { grid-template-columns: repeat(2, 1fr); }
  .partner-feature { grid-template-columns: 1fr; gap: 32px; }
  .contact-content { grid-template-columns: 1fr; gap: 48px; }
  .contact-info-secondary { padding-left: 0; border-left: none; border-top: 1px solid var(--grey-800); padding-top: 32px; }
  .heritage-item { grid-template-columns: 1fr; gap: 16px; text-align: left; }
  .heritage-reverse .heritage-image { order: 0; }
  .heritage-reverse .heritage-text { order: 0; }
  .heritage-reverse .heritage-year { order: 0; text-align: left; }
  .heritage-year { text-align: left; }
  .footer-inner { flex-direction: column; text-align: center; }
  .footer-right { flex-direction: column; gap: 12px; }
  section { padding: 80px 24px; }
  .hero-content { padding: 100px 24px 60px; }
  .product-visual { height: 200px; }
  .product-info { padding: 32px 24px; }
}

@media (max-width: 500px) {
  .partners-grid { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
}