/* egernet.dk — one static page, no build step, no web fonts or trackers. */

:root {
  --bg: #14110f;
  --bg-2: #1c1815;
  --card: #231e1a;
  --line: #3a312a;
  --text: #f6efe6;
  --text-2: #c9bcad;
  --text-3: #988b7d;
  --accent: #e0702c;
  --accent-2: #f39a4f;
  --cream: #fbf5ec;
  --radius: 20px;
  --wrap: 1180px;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; } }

body {
  margin: 0; background: var(--bg); color: var(--text);
  font: 17px/1.6 ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent-2); }
h1, h2, h3 { line-height: 1.12; letter-spacing: -0.02em; margin: 0 0 .5em; }
h1 { font-size: clamp(2.3rem, 5vw, 4rem); font-weight: 800; }
h2 { font-size: clamp(1.7rem, 3.2vw, 2.5rem); font-weight: 750; }
h3 { font-size: 1.2rem; font-weight: 700; }
p { margin: 0 0 1em; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }
@media (max-width: 600px) { .wrap { padding: 0 16px; } }
.eyebrow { text-transform: uppercase; letter-spacing: .14em; font-size: .78rem; font-weight: 700; color: var(--accent-2); margin-bottom: .9em; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; padding: .62em 1.15em; border-radius: 999px;
  font-weight: 650; font-size: .95rem; text-decoration: none; border: 1.5px solid transparent; white-space: nowrap;
  transition: transform .15s, background .15s;
}
.btn:hover { transform: translateY(-1px); }
.btn-lg { padding: .85em 1.5em; font-size: 1.05rem; }
.btn-primary { background: var(--accent); color: #fff; box-shadow: 0 8px 22px rgba(224, 112, 44, .35); }
.btn-primary:hover { background: #c95f20; }
.btn-glass { background: rgba(255,255,255,.08); color: var(--text); border-color: rgba(255,255,255,.18); backdrop-filter: blur(8px); }
.btn-glass:hover { background: rgba(255,255,255,.14); }

/* Nav */
.nav { position: sticky; top: 0; z-index: 10; background: rgba(20,17,15,.78); backdrop-filter: saturate(1.4) blur(12px); border-bottom: 1px solid rgba(58,49,42,.7); }
.nav-inner { display: flex; align-items: center; gap: 24px; height: 68px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--text); text-decoration: none; font-weight: 800; font-size: 1.25rem; letter-spacing: -0.02em; }
.brand img { border-radius: 10px; }
.nav-links { display: flex; gap: 22px; margin-left: 12px; }
.nav-links a { color: var(--text-2); text-decoration: none; font-weight: 550; font-size: .95rem; }
.nav-links a:hover { color: var(--text); }
.nav-btn { margin-left: auto; }
@media (max-width: 760px) { .nav-links { display: none; } }

/* Hero */
.hero { position: relative; min-height: min(88vh, 780px); display: flex; align-items: center; overflow: hidden; }
.hero-bg, .hero-bg img { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero-bg img { object-fit: cover; object-position: 70% center; }
.hero::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(20,17,15,.94) 0%, rgba(20,17,15,.82) 36%, rgba(20,17,15,.25) 62%, rgba(20,17,15,0) 80%),
              linear-gradient(0deg, var(--bg) 0%, rgba(20,17,15,0) 22%);
}
.hero-inner { position: relative; z-index: 1; padding-top: 72px; padding-bottom: 72px; width: 100%; }
.hero-inner > * { max-width: 580px; }
.lead { font-size: 1.2rem; color: var(--text-2); }
.lead strong { color: var(--text); }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
@media (max-width: 800px) {
  .hero { min-height: 0; flex-direction: column; align-items: stretch; }
  .hero-bg { position: relative; height: 58vw; }
  .hero-bg img { position: absolute; }
  .hero::after { background: linear-gradient(0deg, var(--bg) 0%, rgba(20,17,15,0) 30%); height: 58vw; }
  .hero-inner { padding-top: 16px; padding-bottom: 32px; }
}

.section { padding: 96px 0; }
@media (max-width: 700px) { .section { padding: 64px 0; } }
.section-head { max-width: 720px; margin: 0 auto 48px; text-align: center; }
.section-lead { color: var(--text-2); font-size: 1.1rem; }

.tag {
  display: inline-block; font-size: .75rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase;
  color: var(--accent-2); background: rgba(224,112,44,.12); border: 1px solid rgba(224,112,44,.28);
  padding: .2em .7em; border-radius: 999px; margin-bottom: 12px;
}

/* Featured Today */
.featured {
  display: grid; grid-template-columns: 1.05fr 1fr; overflow: hidden; border-radius: 28px;
  background: linear-gradient(135deg, #fbf5ec 0%, #f4e7d6 100%); color: #1d2230;
  box-shadow: 0 40px 80px rgba(0,0,0,.35);
}
.featured > * { min-width: 0; }
.featured-media img { width: 100%; height: 100%; object-fit: cover; min-height: 320px; }
.featured-body { padding: 48px 44px; display: flex; flex-direction: column; align-items: flex-start; }
.featured-body p { color: #4a5164; font-size: 1.06rem; }
.featured .tag { color: #b5521a; background: rgba(224,112,44,.12); }
.facts { list-style: none; padding: 0; margin: 8px 0 28px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; width: 100%; }
.facts li { display: flex; flex-direction: column; }
.facts strong { font-size: 2rem; font-weight: 800; color: #e0702c; line-height: 1.1; }
.facts span { font-size: .88rem; color: #6b7285; }
@media (max-width: 900px) {
  .featured { grid-template-columns: 1fr; }
  .featured-media img { min-height: 0; aspect-ratio: 16 / 9; }
  .featured-body { padding: 32px 24px; }
}
@media (max-width: 420px) { .facts { grid-template-columns: 1fr; } }

/* Project grid */
.projects { background: linear-gradient(180deg, var(--bg) 0%, var(--bg-2) 100%); }
.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.card {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden;
  display: flex; flex-direction: column; transition: transform .2s, border-color .2s;
}
.card:hover { transform: translateY(-3px); border-color: #57483c; }
.card > img, .card-art { aspect-ratio: 16 / 10; width: 100%; object-fit: cover; }
.card-body { padding: 22px 24px 26px; }
.card-body p { color: var(--text-2); margin: 0; font-size: .98rem; }
.card-wide { grid-column: span 2; flex-direction: row; }
.card-wide > img { aspect-ratio: auto; width: 55%; }
.card-wide .card-body { align-self: center; padding: 32px; }
.card-full { grid-column: 1 / -1; flex-direction: row; }
.card-full .card-art { aspect-ratio: auto; width: 32%; min-height: 200px; }
.card-full .card-body { align-self: center; padding: 32px; max-width: 720px; }
@media (max-width: 980px) {
  .grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 680px) {
  .grid { grid-template-columns: 1fr; }
  .card-wide { grid-column: auto; flex-direction: column; }
  .card-wide > img { width: 100%; aspect-ratio: 16 / 10; }
  .card-wide .card-body { padding: 22px 24px 26px; }
  .card-full { flex-direction: column; }
  .card-full .card-art { width: 100%; aspect-ratio: 16 / 10; min-height: 0; }
  .card-full .card-body { padding: 22px 24px 26px; }
}

/* Drawn card art (no image needed) */
.card-art { display: grid; place-items: center; position: relative; }
.art-seasons { display: grid; grid-template-columns: repeat(3, 1fr); place-items: stretch; gap: 0; }
.art-seasons img { width: 100%; height: 100%; object-fit: cover; }
.art-phone { background: radial-gradient(circle at 70% 30%, #3b2a20, #191411); }
.phone-frame {
  width: 34%; aspect-ratio: 9 / 18; border-radius: 18px; border: 5px solid #07080c; background: #fbf5ec;
  display: flex; flex-direction: column; gap: 8px; padding: 18px 10px;
}
.phone-frame span { height: 14%; border-radius: 6px; background: #f1dcc6; }
.phone-frame span:nth-child(2) { background: #cfe3d4; }
.phone-frame span:nth-child(3) { background: #d5dff2; }
.art-lock { background: radial-gradient(circle at 50% 40%, #24372b, #121a15); font-size: 3.2rem; }

/* More projects */
.more { background: var(--bg-2); }
.more-soon { text-align: center; color: var(--text-3); margin: 36px 0 0; font-style: italic; }

/* Tech */
.tech-inner { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.tech-inner > * { min-width: 0; }
.tech-text p { color: var(--text-2); font-size: 1.06rem; }
.chips { list-style: none; padding: 0; margin: 24px 0 0; display: flex; flex-wrap: wrap; gap: 10px; }
.chips li { border: 1px solid var(--line); background: var(--card); border-radius: 999px; padding: .35em .95em; font-size: .9rem; font-weight: 600; color: var(--text-2); }
.tech-media { margin: 0; }
.tech-media img { border-radius: var(--radius); box-shadow: 0 30px 60px rgba(0,0,0,.4); width: 100%; }
@media (max-width: 900px) { .tech-inner { grid-template-columns: 1fr; gap: 32px; } }

/* Story */
.story { padding-top: 32px; }
.story-inner { max-width: 720px; text-align: center; }
.story-logo { margin: 0 auto 24px; border-radius: 24px; box-shadow: 0 16px 40px rgba(0,0,0,.4); }
.story p { color: var(--text-2); font-size: 1.1rem; }

/* Contact — a form, so the address it reaches is never on the page */
.contact { padding-top: 32px; }
.contact-inner {
  display: grid; grid-template-columns: 1fr 1.3fr; gap: 40px; align-items: start;
  background: linear-gradient(135deg, #2a1f18 0%, #3a2618 100%); border: 1px solid #4b3423; border-radius: 28px; padding: 48px;
}
.contact-inner > * { min-width: 0; }
.contact-text p { color: var(--text-2); }
@media (max-width: 860px) { .contact-inner { grid-template-columns: 1fr; gap: 24px; } }
@media (max-width: 620px) { .contact-inner { padding: 28px 18px; } }
.contact-form { display: grid; gap: 16px; }
.contact-form label { display: grid; gap: 6px; font-weight: 650; font-size: .92rem; color: var(--text-2); }
.contact-form input, .contact-form textarea {
  font: inherit; color: var(--text); background: rgba(0,0,0,.28); border: 1.5px solid #5a4333;
  border-radius: 12px; padding: .7em .85em; width: 100%;
}
.contact-form textarea { resize: vertical; min-height: 130px; }
.contact-form input:focus, .contact-form textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(224,112,44,.25); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 600px) { .form-row { grid-template-columns: 1fr; } }
.form-foot { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.form-note { color: var(--text-3); font-size: .88rem; }
.form-status { margin: 0; padding: .8em 1em; border-radius: 12px; font-weight: 600; }
.form-status.is-ok { background: rgba(80,170,110,.16); color: #9fe0b4; }
.form-status.is-error { background: rgba(220,80,60,.16); color: #ffb3a6; }
.hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.footer { padding: 40px 0 56px; color: var(--text-3); font-size: .92rem; }
.footer-inner { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.footer a { color: var(--text-2); }
