/* ==========================================================================
   Rafstormur — handcrafted landing page styles.
   Framework-free. Modern CSS (custom properties, grid, clamp, :has).
   ========================================================================== */

/* --- Design tokens ------------------------------------------------------- */
:root {
    --ink: #0f1114;
    --ink-2: #181b21;
    --ink-3: #22262e;
    --line: rgba(255, 255, 255, 0.08);
    --line-ink: rgba(15, 17, 20, 0.1);
    --paper: #f6f6f3;
    --paper-2: #eceae3;
    --text: #1a1d22;
    --text-mute: #5b616b;
    --text-inv: #f5f5f2;
    --text-inv-mute: rgba(245, 245, 242, 0.68);
    --brand: #ffc800;
    --brand-hi: #ffd53a;
    --danger: #e4572e;
    --ok: #1b8a5a;

    --radius-sm: 10px;
    --radius: 16px;
    --radius-lg: 22px;

    --shadow-sm: 0 2px 8px rgba(15, 17, 20, 0.06);
    --shadow: 0 10px 28px rgba(15, 17, 20, 0.08);
    --shadow-lg: 0 24px 60px rgba(15, 17, 20, 0.16);

    --ease: cubic-bezier(0.2, 0.8, 0.2, 1);
    --t-fast: 180ms var(--ease);
    --t: 260ms var(--ease);

    --wrap: 1200px;
    --pad-x: clamp(1.25rem, 3vw, 2rem);
    --section-y: clamp(4rem, 8vw, 7rem);

    --font-sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    --font-display: "Space Grotesk", var(--font-sans);

    color-scheme: light;
}

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

html {
    -webkit-text-size-adjust: 100%;
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
}

body {
    margin: 0;
    font-family: var(--font-sans);
    font-size: 16px;
    line-height: 1.55;
    color: var(--text);
    background: var(--paper);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
}

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

h1, h2, h3, h4 {
    font-family: var(--font-display);
    letter-spacing: -0.02em;
    line-height: 1.1;
    margin: 0;
    color: inherit;
}

p {
    margin: 0;
}

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

ul, ol {
    padding: 0;
    margin: 0;
    list-style: none;
}

button {
    font: inherit;
    border: 0;
    background: none;
    cursor: pointer;
}

input,
select,
textarea {
    font: inherit;
    color: inherit;
}

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

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

/* --- Utilities ----------------------------------------------------------- */
.wrap {
    width: 100%;
    max-width: var(--wrap);
    margin-inline: auto;
    padding-inline: var(--pad-x);
}

.skip-link {
    position: absolute;
    top: -40px;
    left: 1rem;
    background: var(--brand);
    color: var(--ink);
    padding: 0.5rem 0.9rem;
    border-radius: var(--radius-sm);
    font-weight: 600;
    z-index: 2000;
    transition: top var(--t-fast);
}
.skip-link:focus {
    top: 0.75rem;
}

.section {
    padding-block: var(--section-y);
}

.section-head {
    text-align: center;
    max-width: 640px;
    margin: 0 auto clamp(2rem, 4vw, 3rem);
}
.section-head h2 {
    font-size: clamp(1.75rem, 3.5vw, 2.75rem);
    margin-block: 0.4rem 0.75rem;
}
.section-head p {
    color: var(--text-mute);
    font-size: 1.05rem;
}
.section-head p a {
    color: var(--text);
    font-weight: 600;
    text-decoration: underline;
    text-underline-offset: 0.2em;
}
.section-head p a:hover {
    color: var(--brand);
}

.section-kicker {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-family: var(--font-display);
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--text-mute);
}
.section-kicker::before {
    content: "";
    width: 18px;
    height: 2px;
    background: var(--brand);
}

/* --- Buttons ------------------------------------------------------------- */
.btn {
    --bg: transparent;
    --fg: currentColor;
    --br: transparent;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.65rem 1rem;
    border-radius: 999px;
    font-weight: 600;
    font-size: 0.95rem;
    background: var(--bg);
    color: var(--fg);
    border: 1px solid var(--br);
    transition: transform var(--t-fast), background var(--t-fast), color var(--t-fast), box-shadow var(--t-fast);
    white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }

.btn-primary {
    --bg: var(--brand);
    --fg: var(--ink);
    --br: var(--brand);
    box-shadow: 0 6px 18px rgba(255, 200, 0, 0.35);
}
.btn-primary:hover { --bg: var(--brand-hi); --br: var(--brand-hi); }

.btn-outline {
    --bg: transparent;
    --fg: #fff;
    --br: rgba(255, 255, 255, 0.4);
}
.btn-outline:hover { --bg: rgba(255, 255, 255, 0.08); --br: #fff; }

.btn-ghost {
    --bg: transparent;
    --fg: inherit;
    --br: transparent;
    padding-inline: 0.75rem;
}
.btn-ghost:hover { --bg: rgba(15, 17, 20, 0.06); }

.site-header[data-scrolled="true"] .btn-ghost:hover { --bg: rgba(255, 255, 255, 0.08); }

.btn-lg {
    padding: 0.9rem 1.4rem;
    font-size: 1rem;
}

.btn-block {
    width: 100%;
}

/* --- Header -------------------------------------------------------------- */
.site-header {
    position: fixed;
    inset: 0 0 auto 0;
    z-index: 100;
    background: rgba(246, 246, 243, 0.72);
    backdrop-filter: saturate(1.4) blur(14px);
    -webkit-backdrop-filter: saturate(1.4) blur(14px);
    border-bottom: 1px solid transparent;
    transition: background var(--t-fast), border-color var(--t-fast), color var(--t-fast);
}
.site-header[data-scrolled="true"] {
    background: rgba(15, 17, 20, 0.85);
    border-bottom-color: var(--line);
    color: var(--text-inv);
}

.header-inner {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding-block: 0.75rem;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 1.05rem;
    letter-spacing: -0.01em;
    color: inherit;
}
.brand-mark {
    color: var(--brand);
    flex: 0 0 auto;
}
.brand-name {
    font-size: 1.05rem;
}

/* Wordmark logo — CSS mask so it inherits currentColor (works on light + dark headers). */
.brand-logo {
    display: block;
    height: 30px;
    width: calc(30px * 2.85);
    background: currentColor;
    -webkit-mask: url("../assets/Merkingar/landscape/logo-landscape-current.svg") center / contain no-repeat;
            mask: url("../assets/Merkingar/landscape/logo-landscape-current.svg") center / contain no-repeat;
    color: inherit;
    flex: 0 0 auto;
}
@media (min-width: 860px) {
    .brand-logo { height: 34px; width: calc(34px * 2.85); }
}
.site-footer .brand-logo { height: 32px; width: calc(32px * 2.85); color: var(--text-inv); }
.site-header .brand-logo { color: var(--ink); }
.site-header[data-scrolled="true"] .brand-logo { color: var(--text-inv); }
/* When the wordmark is used, the tornado icon + text become redundant. */
.brand:has(.brand-logo) .brand-mark,
.brand:has(.brand-logo) .brand-name {
    display: none;
}

.primary-nav {
    display: none;
    gap: 1.5rem;
    margin-left: 2rem;
}
.primary-nav a {
    position: relative;
    font-weight: 500;
    font-size: 0.95rem;
    opacity: 0.85;
    transition: opacity var(--t-fast);
}
.primary-nav a::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: -6px;
    height: 2px;
    background: var(--brand);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform var(--t-fast);
}
.primary-nav a:hover { opacity: 1; }
.primary-nav a:hover::after { transform: scaleX(1); }

.header-ctas {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-left: auto;
}
.header-ctas .btn-ghost { display: none; }

.menu-toggle {
    display: inline-flex;
    flex-direction: column;
    gap: 4px;
    width: 40px;
    height: 40px;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    transition: background var(--t-fast);
}
.menu-toggle span {
    display: block;
    width: 20px;
    height: 2px;
    background: currentColor;
    transition: transform var(--t-fast), opacity var(--t-fast);
}
.menu-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.menu-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }
.menu-toggle:hover { background: rgba(15, 17, 20, 0.06); }
.site-header[data-scrolled="true"] .menu-toggle:hover { background: rgba(255, 255, 255, 0.08); }

/* Only show layout when open — `hidden` sets display:none in UA stylesheet,
   but a plain `display:flex` here would override it and keep the menu visible. */
.mobile-nav:not([hidden]) {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    padding: 0.5rem var(--pad-x) 1.25rem;
    border-top: 1px solid var(--line-ink);
}
.site-header[data-scrolled="true"] .mobile-nav:not([hidden]) {
    border-top-color: var(--line);
}
.mobile-nav a {
    padding: 0.85rem 0.5rem;
    border-radius: var(--radius-sm);
    font-weight: 600;
    transition: background var(--t-fast);
}
.mobile-nav a:hover { background: rgba(15, 17, 20, 0.05); }
.site-header[data-scrolled="true"] .mobile-nav a:hover { background: rgba(255, 255, 255, 0.08); }

@media (min-width: 860px) {
    .primary-nav { display: inline-flex; }
    .header-ctas .btn-ghost { display: inline-flex; }
    .menu-toggle { display: none; }
    .mobile-nav { display: none !important; }
}

/* --- Hero ---------------------------------------------------------------- */
.hero {
    position: relative;
    background: radial-gradient(1200px 500px at 80% -10%, rgba(255, 200, 0, 0.12), transparent 70%),
                var(--ink);
    color: var(--text-inv);
    padding-top: clamp(7rem, 14vw, 10rem);
    padding-bottom: clamp(4rem, 8vw, 6rem);
    overflow: hidden;
    isolation: isolate;
}

.hero-grid {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(var(--line) 1px, transparent 1px),
        linear-gradient(90deg, var(--line) 1px, transparent 1px);
    background-size: 48px 48px;
    mask-image: radial-gradient(circle at 70% 30%, #000 0%, transparent 75%);
    -webkit-mask-image: radial-gradient(circle at 70% 30%, #000 0%, transparent 75%);
    opacity: 0.45;
    z-index: 0;
}

.hero-inner {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: 1fr;
    gap: 2.5rem;
    align-items: center;
}

.hero-copy { max-width: 640px; }

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.35rem 0.8rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid var(--line);
    font-size: 0.82rem;
    font-weight: 500;
    color: var(--text-inv-mute);
}
.pulse {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--brand);
    box-shadow: 0 0 0 0 rgba(255, 200, 0, 0.6);
    animation: pulse 2s infinite;
}
@keyframes pulse {
    0%   { box-shadow: 0 0 0 0 rgba(255, 200, 0, 0.5); }
    70%  { box-shadow: 0 0 0 12px rgba(255, 200, 0, 0); }
    100% { box-shadow: 0 0 0 0 rgba(255, 200, 0, 0); }
}

.hero h1 {
    font-size: clamp(2.25rem, 6vw, 4.25rem);
    margin-block: 1.25rem 1rem;
    font-weight: 700;
}
.accent {
    color: var(--brand);
    background: linear-gradient(90deg, var(--brand) 0%, var(--brand-hi) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.lead {
    color: var(--text-inv-mute);
    font-size: clamp(1.02rem, 1.4vw, 1.15rem);
    max-width: 56ch;
}

.hero-ctas {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-top: 1.75rem;
}

.trust-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem 1.25rem;
    margin-top: 2rem;
    color: var(--text-inv-mute);
    font-size: 0.88rem;
}
.trust-pills li {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
}
.trust-pills svg { color: var(--brand); }

/* Contact card */
.contact-card {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    padding: 1.25rem 1.25rem 0.25rem;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    min-width: 0;
}
.contact-card-head {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--text-inv-mute);
    margin-bottom: 0.5rem;
}
.contact-card-head .dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #48d172;
    box-shadow: 0 0 10px rgba(72, 209, 114, 0.6);
}
.contact-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    padding: 0.85rem 0;
    border-bottom: 1px solid var(--line);
    transition: color var(--t-fast);
}
.contact-row:last-child { border-bottom: 0; }
.contact-row:hover:not(.contact-row--static) { color: var(--brand); }
.contact-label {
    color: var(--text-inv-mute);
    font-size: 0.85rem;
}
.contact-value {
    font-family: var(--font-display);
    font-weight: 600;
    font-size: 1rem;
}

@media (min-width: 980px) {
    .hero-inner {
        grid-template-columns: 1.4fr 1fr;
        gap: 3.5rem;
    }
}

/* --- Services ------------------------------------------------------------ */
.section-services {
    background: var(--paper);
}

.cards-3 {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.25rem;
}
@media (min-width: 720px) { .cards-3 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .cards-3 { grid-template-columns: repeat(3, 1fr); } }

.card {
    background: #fff;
    border: 1px solid rgba(15, 17, 20, 0.06);
    border-radius: var(--radius);
    padding: 1.75rem 1.5rem;
    box-shadow: var(--shadow-sm);
    transition: transform var(--t), box-shadow var(--t), border-color var(--t);
    position: relative;
    overflow: hidden;
}
.card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--brand);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform var(--t);
}
.card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow);
    border-color: rgba(15, 17, 20, 0.1);
}
.card:hover::before { transform: scaleX(1); }

.card-icon {
    width: 56px;
    height: 56px;
    border-radius: 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(140deg, var(--brand) 0%, var(--brand-hi) 100%);
    color: var(--ink);
    margin-bottom: 1rem;
    box-shadow: 0 8px 20px rgba(255, 200, 0, 0.25);
}

.card h3 {
    font-size: 1.35rem;
    margin-bottom: 0.5rem;
}
.card p {
    color: var(--text-mute);
    margin-bottom: 1rem;
}
.card ul li {
    position: relative;
    padding: 0.35rem 0 0.35rem 1.25rem;
    font-size: 0.94rem;
    color: var(--text);
    border-top: 1px dashed rgba(15, 17, 20, 0.1);
}
.card ul li:first-child { border-top: 0; }
.card ul li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.9em;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--brand);
}

/* --- Process ------------------------------------------------------------- */
.section-process {
    background: var(--paper-2);
}

.steps {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.25rem;
    counter-reset: step;
}
@media (min-width: 820px) { .steps { grid-template-columns: repeat(3, 1fr); } }

.step {
    position: relative;
    padding: 1.75rem 1.5rem;
    background: #fff;
    border-radius: var(--radius);
    border: 1px solid rgba(15, 17, 20, 0.06);
}
.step-num {
    font-family: var(--font-display);
    font-size: 2.75rem;
    font-weight: 700;
    line-height: 1;
    color: transparent;
    -webkit-text-stroke: 1.5px var(--ink);
    display: block;
    margin-bottom: 0.75rem;
    letter-spacing: -0.04em;
}
.step h3 {
    font-size: 1.2rem;
    margin-bottom: 0.4rem;
}
.step p {
    color: var(--text-mute);
    font-size: 0.96rem;
}

/* --- Team ---------------------------------------------------------------- */
.section-team {
    background: var(--paper);
}

.team-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.25rem;
    max-width: 960px;
    margin-inline: auto;
}
@media (min-width: 720px) { .team-grid { grid-template-columns: repeat(2, 1fr); } }

.team-card {
    background: var(--ink);
    color: var(--text-inv);
    border-radius: var(--radius-lg);
    overflow: hidden;
    display: grid;
    grid-template-rows: auto 1fr;
    transition: transform var(--t), box-shadow var(--t);
}
.team-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}
.team-card img {
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    filter: grayscale(0.15) contrast(1.02);
}
.team-card--text {
    grid-template-rows: 1fr;
}
.team-card--text .team-body {
    padding: 1.5rem 1.25rem 1.5rem;
}
.team-body {
    padding: 1.25rem 1.25rem 1.5rem;
}
.team-role {
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--brand);
    font-weight: 600;
}
.team-card h3 {
    margin-block: 0.35rem 0.75rem;
    font-size: 1.35rem;
}
.team-contact {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    font-size: 0.94rem;
    color: var(--text-inv-mute);
}
.team-contact a {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: color var(--t-fast);
}
.team-contact a:hover { color: var(--brand); }
.team-contact svg { color: var(--brand); }

.biz-line {
    text-align: center;
    color: var(--text-mute);
    font-size: 0.88rem;
    margin-top: 2rem;
}

/* --- FAQ ----------------------------------------------------------------- */
.section-faq {
    background: var(--paper-2);
}
.faq-wrap { max-width: 820px; }

.faq-list {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}
.faq-list details {
    background: #fff;
    border: 1px solid rgba(15, 17, 20, 0.08);
    border-radius: var(--radius);
    padding: 0;
    overflow: hidden;
    transition: border-color var(--t-fast), box-shadow var(--t-fast);
}
.faq-list details[open] {
    border-color: rgba(255, 200, 0, 0.6);
    box-shadow: 0 6px 18px rgba(15, 17, 20, 0.05);
}
.faq-list summary {
    list-style: none;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1.15rem 1.25rem;
    cursor: pointer;
    font-family: var(--font-display);
    font-weight: 600;
    font-size: 1.05rem;
}
.faq-list summary::-webkit-details-marker { display: none; }
.chev {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    position: relative;
    background: var(--ink);
    color: var(--text-inv);
    flex: 0 0 auto;
    transition: transform var(--t), background var(--t);
}
.chev::before,
.chev::after {
    content: "";
    position: absolute;
    inset: 0;
    margin: auto;
    background: currentColor;
}
.chev::before { width: 10px; height: 2px; }
.chev::after { width: 2px; height: 10px; transition: transform var(--t); }
.faq-list details[open] .chev { background: var(--brand); color: var(--ink); }
.faq-list details[open] .chev::after { transform: scaleY(0); }
.faq-list details > p {
    padding: 0 1.25rem 1.25rem;
    color: var(--text-mute);
    line-height: 1.65;
}
.faq-list details > p a { color: var(--text); text-decoration: underline; }

/* --- Contact ------------------------------------------------------------- */
.section-contact {
    background: var(--ink);
    color: var(--text-inv);
    position: relative;
    overflow: hidden;
}
.section-contact::before {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(800px 400px at 20% 100%, rgba(255, 200, 0, 0.1), transparent 60%);
    pointer-events: none;
}
.contact-grid {
    position: relative;
    display: grid;
    grid-template-columns: 1fr;
    gap: 2.5rem;
}
@media (min-width: 920px) {
    .contact-grid { grid-template-columns: 1fr 1.2fr; gap: 4rem; align-items: start; }
}

.contact-pitch h2 {
    font-size: clamp(1.75rem, 3.5vw, 2.5rem);
    margin-block: 0.5rem 0.75rem;
}
.contact-pitch p {
    color: var(--text-inv-mute);
    margin-bottom: 1.5rem;
}
.info-list {
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
}
.info-list li {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: var(--text-inv-mute);
    font-size: 0.98rem;
}
.info-list svg {
    color: var(--brand);
    flex: 0 0 auto;
}
.info-list a { color: var(--text-inv); border-bottom: 1px dashed transparent; transition: border-color var(--t-fast); }
.info-list a:hover { border-bottom-color: var(--brand); }

/* Form */
.contact-form {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    padding: clamp(1.25rem, 3vw, 2rem);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    display: flex;
    flex-direction: column;
    gap: 1rem;
}
.field {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
    min-width: 0;
}
.field label {
    font-size: 0.82rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--text-inv-mute);
}
.field input,
.field select,
.field textarea {
    appearance: none;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    padding: 0.85rem 1rem;
    color: var(--text-inv);
    font-size: 1rem;
    transition: border-color var(--t-fast), background var(--t-fast);
}
.field textarea { resize: vertical; min-height: 110px; font-family: inherit; }
.field input::placeholder,
.field textarea::placeholder { color: rgba(245, 245, 242, 0.35); }
.field input:focus,
.field select:focus,
.field textarea:focus {
    outline: none;
    border-color: var(--brand);
    background: rgba(255, 255, 255, 0.08);
}
.field select {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23ffc800' d='M7 10l5 5 5-5z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 0.9rem center;
    background-size: 20px;
    padding-right: 2.5rem;
}
.field select option { background: var(--ink-2); color: var(--text-inv); }
.field-row {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
}
@media (min-width: 560px) { .field-row { grid-template-columns: 1fr 1fr; } }

.form-note {
    font-size: 0.82rem;
    color: var(--text-inv-mute);
    text-align: center;
    margin-top: -0.25rem;
}
.form-note a { text-decoration: underline; color: var(--text-inv); }

.form-status {
    border-radius: var(--radius-sm);
    padding: 0.9rem 1rem;
    font-size: 0.95rem;
    border: 1px solid transparent;
}
.form-status--success {
    background: rgba(72, 209, 114, 0.12);
    border-color: rgba(72, 209, 114, 0.35);
    color: #b7f0cc;
}
.form-status--error {
    background: rgba(228, 87, 46, 0.12);
    border-color: rgba(228, 87, 46, 0.35);
    color: #f2b29d;
}
.form-status a { text-decoration: underline; }

#submitBtn[aria-busy="true"] {
    pointer-events: none;
    opacity: 0.7;
}

/* --- Footer -------------------------------------------------------------- */
.site-footer {
    background: var(--ink-2);
    color: var(--text-inv-mute);
    padding-block: clamp(3rem, 6vw, 4.5rem) 1.5rem;
}
.footer-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}
@media (min-width: 720px) {
    .footer-grid { grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 2.5rem; }
}
.brand--light { color: var(--text-inv); }
.footer-brand p {
    margin-top: 0.9rem;
    max-width: 320px;
    font-size: 0.94rem;
    line-height: 1.6;
}
.site-footer h4 {
    color: var(--text-inv);
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.18em;
    margin-bottom: 1rem;
}
.site-footer ul li { padding-block: 0.25rem; font-size: 0.94rem; }
.site-footer a:hover { color: var(--brand); }

.socials { display: flex; gap: 0.5rem; }
.socials a {
    width: 38px;
    height: 38px;
    border-radius: 10px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.06);
    transition: background var(--t-fast), color var(--t-fast);
}
.socials a:hover { background: var(--brand); color: var(--ink); }

.footer-bottom {
    margin-top: 3rem;
    padding-top: 1.25rem;
    border-top: 1px solid var(--line);
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 0.75rem;
    font-size: 0.85rem;
}
.footer-bottom-links {
    display: inline-flex;
    flex-wrap: wrap;
    gap: 0.75rem 1.25rem;
    align-items: center;
}
.footer-bottom-links a {
    text-decoration: underline;
    text-underline-offset: 0.15em;
}
.footer-bottom-links a:hover {
    color: var(--brand);
}

/* --- Mobile sticky bar --------------------------------------------------- */
.mobile-sticky {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 80;
    display: flex;
    gap: 0;
    background: var(--ink);
    border-top: 1px solid var(--line);
    box-shadow: 0 -6px 20px rgba(0, 0, 0, 0.25);
    padding: 0.5rem;
}
.mobile-sticky a {
    flex: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.45rem;
    padding: 0.7rem;
    font-weight: 600;
    font-size: 0.92rem;
    color: var(--text-inv);
    border-radius: 10px;
}
.mobile-sticky a.primary {
    background: var(--brand);
    color: var(--ink);
    margin-left: 0.5rem;
}

@media (min-width: 860px) {
    .mobile-sticky { display: none; }
}

body { padding-bottom: 70px; }
@media (min-width: 860px) { body { padding-bottom: 0; } }

/* --- Reveal on scroll ---------------------------------------------------- */
[data-reveal] {
    opacity: 0;
    transform: translateY(14px);
    transition: opacity 600ms var(--ease), transform 600ms var(--ease);
}
[data-reveal].is-visible {
    opacity: 1;
    transform: none;
}

@media (prefers-reduced-motion: reduce) {
    [data-reveal] { opacity: 1; transform: none; }
}

/* --- Verkefni (projects) -------------------------------------------------- */
.section-verkefni {
    background: var(--paper);
}

.verkefni-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.25rem;
}
@media (min-width: 720px) { .verkefni-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .verkefni-grid { grid-template-columns: repeat(3, 1fr); } }

.verkefni-card {
    position: relative;
    display: flex;
    flex-direction: column;
    background: #fff;
    border: 1px solid rgba(15, 17, 20, 0.08);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: transform var(--t), box-shadow var(--t), border-color var(--t);
    color: inherit;
}
.verkefni-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow);
    border-color: rgba(15, 17, 20, 0.15);
}
.verkefni-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--brand);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform var(--t);
    z-index: 2;
}
.verkefni-card:hover::before { transform: scaleX(1); }

.verkefni-card-media {
    aspect-ratio: 3 / 2;
    overflow: hidden;
    background: var(--ink-2);
}
.verkefni-card-media img,
.verkefni-card-media svg {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--t);
}
.verkefni-card:hover .verkefni-card-media img,
.verkefni-card:hover .verkefni-card-media svg {
    transform: scale(1.03);
}

.verkefni-card-body {
    padding: 1.25rem 1.25rem 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    flex: 1;
}
.verkefni-card-tag {
    font-family: var(--font-display);
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--text-mute);
}
.verkefni-card h3 {
    font-size: 1.2rem;
    line-height: 1.25;
}
.verkefni-card p {
    color: var(--text-mute);
    font-size: 0.95rem;
}
.verkefni-card-more {
    margin-top: auto;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--text);
}
.verkefni-card-more::after {
    content: "→";
    transition: transform var(--t-fast);
}
.verkefni-card:hover .verkefni-card-more::after {
    transform: translateX(3px);
}

.verkefni-cta {
    text-align: center;
    margin-top: clamp(1.5rem, 3vw, 2.25rem);
}

/* Subpage: project list + detail */
.subpage-hero {
    padding-top: 7.5rem;
    padding-bottom: clamp(2.5rem, 5vw, 4rem);
    background: var(--ink);
    color: var(--text-inv);
}
.subpage-hero h1 {
    font-size: clamp(1.9rem, 4.5vw, 3rem);
    margin-block: 0.5rem 1rem;
}
.subpage-hero p {
    color: var(--text-inv-mute);
    max-width: 62ch;
    line-height: 1.7;
    font-size: 1.02rem;
}

.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
    font-size: 0.85rem;
    color: var(--text-inv-mute);
    margin-bottom: 0.75rem;
}
.breadcrumb a {
    color: inherit;
    border-bottom: 1px dashed transparent;
}
.breadcrumb a:hover {
    color: var(--brand);
    border-bottom-color: var(--brand);
}
.breadcrumb span[aria-current="page"] {
    color: var(--text-inv);
}
.breadcrumb .sep { opacity: 0.5; }

.verkefni-detail {
    padding-block: clamp(2.5rem, 5vw, 4rem);
}
.verkefni-detail-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}
@media (min-width: 900px) {
    .verkefni-detail-grid { grid-template-columns: 1.5fr 1fr; gap: 3rem; }
}
.verkefni-hero-media {
    aspect-ratio: 3 / 2;
    overflow: hidden;
    background: var(--ink-2);
}
.verkefni-hero-media img,
.verkefni-hero-media svg {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.verkefni-meta {
    background: var(--paper-2);
    padding: 1.5rem;
    border: 1px solid rgba(15, 17, 20, 0.08);
}
.verkefni-meta h2 {
    font-size: 1.1rem;
    margin-bottom: 1rem;
}
.verkefni-meta dl {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 0.6rem 1.25rem;
    margin: 0;
    font-size: 0.95rem;
}
.verkefni-meta dt {
    color: var(--text-mute);
    font-weight: 500;
}
.verkefni-meta dd {
    margin: 0;
    color: var(--text);
    font-weight: 600;
}

.verkefni-body {
    max-width: 68ch;
    margin-top: clamp(2rem, 4vw, 3rem);
}
.verkefni-body h2 {
    font-size: clamp(1.25rem, 2.2vw, 1.6rem);
    margin-block: 1.75rem 0.75rem;
}
.verkefni-body p,
.verkefni-body ul {
    color: var(--text);
    line-height: 1.7;
    margin-bottom: 1rem;
}
.verkefni-body ul {
    padding-left: 1.25rem;
    list-style: disc;
}
.verkefni-body li { margin-bottom: 0.35rem; }

.verkefni-next {
    border-top: 1px solid rgba(15, 17, 20, 0.1);
    margin-top: clamp(2rem, 4vw, 3rem);
    padding-top: clamp(1.5rem, 3vw, 2rem);
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: space-between;
    align-items: center;
}

/* --- No rounded corners (sitewide override) ------------------------------ */
/* Intentional global reset: client wants square corners everywhere. Keep at
   end of file so it overrides all component rules above. */
*,
*::before,
*::after {
    border-radius: 0 !important;
}
