/* =========================================
MINEDER HOMEPAGE
Teal · Burnt Orange · Warm Ivory
========================================= */

/* Typography */

@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;450;500;550;600;650;700;750;800&family=DM+Serif+Display:ital@0;1&display=swap');

/* =========================================
DESIGN TOKENS
========================================= */

:root {
/* Brand colours */
--primary: #0F766E;
--primary-light: #14B8A6;
--accent: #C65D32;
--accent-light: #F4E2D5;
--accent-soft: #F9EEE7;


/* Neutrals */
--background: #FAF8F2;
--white: #FFFFFF;
--dark: #172B2A;
--gray: #64716F;
--border: #E4E8E2;

/* Section backgrounds */
--hero-background: #F4E2D5;
--connection-background: #FFFFFF;
--why-background: #FAF8F2;

/* Typography */
--font-heading: "DM Serif Display", Georgia, serif;
--font-body: "DM Sans", "Segoe UI", sans-serif;

/* Layout */
--container: 1200px;
--radius: 12px;
--radius-large: 18px;

/* Effects */
--shadow:
    0 12px 35px rgba(23, 43, 42, 0.07);

--shadow-hover:
    0 18px 45px rgba(23, 43, 42, 0.11);

--transition: 280ms ease;


}

/* =========================================
BASE
========================================= */

* {
  box-sizing: border-box;
  }

html {
scroll-behavior: smooth;
scroll-padding-top: 90px;
}

body {
margin: 0;
background: var(--background);
color: var(--dark);
font-family: var(--font-body);
font-size: 16px;
line-height: 1.75;
-webkit-font-smoothing: antialiased;
text-rendering: optimizeLegibility;
}

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

a {
color: inherit;
}

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

::selection {
color: var(--white);
background: var(--primary);
}

.section-container {
width: min(var(--container), 88%);
margin-inline: auto;
}

.eyebrow {
display: flex;
align-items: center;
gap: 10px;
margin: 0 0 20px;
color: var(--primary);
font-size: 0.72rem;
font-weight: 750;
letter-spacing: 0.15em;
text-transform: uppercase;
}

.eyebrow::before {
width: 23px;
height: 2px;
flex-shrink: 0;
background: var(--accent);
content: "";
}

/* =========================================
HERO
========================================= */

.hero {
position: relative;
display: grid;
grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
align-items: center;
gap: 5%;


width: min(1440px, 100%);
min-height: 600px;
margin-inline: auto;
padding: 85px 8% 95px;

overflow: hidden;
isolation: isolate;

background:
    radial-gradient(
        ellipse at 88% 8%,
        rgba(255, 255, 255, 0.58),
        transparent 37%
    ),
    var(--hero-background);


}

.hero::before {
position: absolute;
z-index: -1;
top: -180px;
left: -150px;
width: 360px;
height: 360px;
border: 1px solid rgba(198, 93, 50, 0.12);
border-radius: 50%;
content: "";
pointer-events: none;
}

.hero::after {
position: absolute;
z-index: -1;
top: -125px;
left: -95px;
width: 250px;
height: 250px;
border: 1px solid rgba(198, 93, 50, 0.10);
border-radius: 50%;
content: "";
pointer-events: none;
}

.hero-content {
max-width: 620px;
animation: hero-content-enter 750ms ease both;
}

.hero h1 {
margin: 0;
color: var(--dark);
font-family: var(--font-heading);
font-size: clamp(3.2rem, 5.1vw, 5rem);
font-weight: 400;
line-height: 1.04;
letter-spacing: -0.035em;
}

.hero h1 span {
display: block;
color: var(--primary);
font-style: italic;
}

.hero-description {
max-width: 520px;
margin: 26px 0 30px;
color: #52645F;
font-size: 1rem;
line-height: 1.9;
animation: hero-content-enter 750ms 100ms ease both;
}

.hero-link {
display: inline-flex;
align-items: center;
gap: 12px;


padding: 10px 0 7px;
border-bottom: 1px solid var(--primary);

color: var(--primary);
font-size: 0.95rem;
font-weight: 700;
text-decoration: none;

transition:
    color var(--transition),
    border-color var(--transition),
    gap var(--transition);

animation: hero-content-enter 750ms 180ms ease both;


}

.hero-link span {
display: inline-block;
color: var(--accent);
transition: transform var(--transition);
}

.hero-link:hover {
gap: 16px;
color: var(--dark);
border-color: var(--accent);
}

.hero-link:hover span {
transform: translate(3px, -3px);
}

.hero-link:focus-visible,
.connection-link:focus-visible {
outline: 2px solid var(--accent);
outline-offset: 5px;
}

/* =========================================
HERO PHOTOGRAPH -- EDITORIAL FRAME
========================================= */

.hero-image {
position: relative;
padding: 8px;
border: 1px solid rgba(255, 255, 255, 0.8);
border-radius: 20px;
background: var(--background);
box-shadow: 0 14px 35px rgba(23, 43, 42, 0.09);
}

.hero-image::before,
.hero-image::after {
content: none;
display: none;
}

.hero-image img {
display: block;
width: 100%;
height: clamp(350px, 40vw, 490px);
object-fit: cover;
object-position: center;
border: none;
border-radius: 13px;
box-shadow:none;
transition:transform var(--transition);
}

.hero-image img{
 transform: scale(1.01);   
}

.hero-image:hover img {
box-shadow:
0 22px 55px rgba(23, 43, 42, 0.15),
0 0 65px rgba(198, 93, 50, 0.12);
}

/* =========================================
SHARED SECTION HEADINGS
========================================= */

.section-heading {
max-width: 720px;
margin-bottom: 42px;
}

.section-heading h2 {
margin: 0;


color: var(--dark);
font-family: var(--font-heading);
font-size: clamp(2.5rem, 4vw, 3.65rem);
font-weight: 400;
line-height: 1.13;
letter-spacing: -0.025em;


}

.section-heading > p:last-child {
max-width: 600px;
margin: 18px 0 0;


color: var(--gray);
font-size: 0.98rem;
line-height: 1.9;


}

/* =========================================
THE CONNECTION
========================================= */

.connection {
position: relative;
padding-block: 95px 105px;
background: var(--connection-background);
}

.connection .section-heading {
max-width: 720px;
margin-bottom: 44px;
}

.connection .section-heading h2 {
color: var(--dark);
}

.connection .section-heading > p:last-child {
max-width: 580px;
}

.connection-grid {
display: grid;
grid-template-columns: repeat(2, minmax(0, 1fr));
gap: 24px;
}

/* Connection cards */

.connection-card {
position: relative;


display: flex;
flex-direction: column;
align-items: flex-start;

min-width: 0;
min-height: 310px;
padding: 36px;

overflow: hidden;

border: 1px solid var(--border);
border-top: 3px solid var(--primary);
border-radius: var(--radius-large);

background: var(--white);

box-shadow: 0 4px 18px rgba(23, 43, 42, 0.025);

transition:
    border-color var(--transition),
    box-shadow var(--transition),
    transform var(--transition);


}

/* Both cards use the same visual treatment */

.connection-card:nth-child(2) {
background: var(--white);
}

/* Soft decorative glow */

.connection-card::after {
position: absolute;
top: -70px;
right: -70px;


width: 150px;
height: 150px;

border-radius: 50%;
background: rgba(198, 93, 50, 0.055);

content: "";
pointer-events: none;

transition:
    background 350ms ease,
    transform 450ms ease;


}

.connection-card:hover {
border-color: rgba(15, 118, 110, 0.25);
border-top-color: var(--accent);


box-shadow: var(--shadow-hover);
transform: translateY(-5px);


}

.connection-card:hover::after {
background: rgba(198, 93, 50, 0.10);
transform: scale(1.15);
}

/* Card numbers */

.card-number {
display: inline-block;
margin-bottom: 24px;


color: var(--accent);
font-size: 0.76rem;
font-weight: 750;
letter-spacing: 0.13em;


}

/* Card headings */

.connection-card h3 {
margin: 0 0 13px;


color: var(--dark);
font-family: var(--font-heading);
font-size: 2rem;
font-weight: 400;
line-height: 1.25;


}

/* Card descriptions */

.connection-card p {
max-width: 450px;
margin: 0 0 26px;


color: var(--gray);
font-size: 0.95rem;
line-height: 1.9;


}

/* Minds and Miners links */

.connection-link {
position: relative;
z-index: 1;


display: inline-flex;
align-items: center;
gap: 10px;

margin-top: auto;
padding-bottom: 5px;

border-bottom: 1px solid rgba(15, 118, 110, 0.4);

color: var(--primary);
font-size: 0.93rem;
font-weight: 700;
text-decoration: none;

transition:
    gap var(--transition),
    color var(--transition),
    border-color var(--transition);


}

.connection-link span {
color: var(--accent);
transition: transform var(--transition);
}

.connection-link:hover {
gap: 15px;
color: var(--dark);
border-color: var(--accent);
}

.connection-link:hover span {
transform: translateX(3px);
}

/* =========================================
WHY MINEDER
========================================= */

.why-mineder {
padding-block: 100px;
background: var(--why-background);
}

.why-mineder .section-container {
display: grid;
grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
align-items: start;
gap: 75px;
}

.why-mineder .section-heading {
position: sticky;
top: 100px;
align-self: start;
margin: 0;
}

.why-mineder .section-heading h2 {
max-width: 450px;


color: var(--dark);
font-family: var(--font-heading);
font-size: clamp(2.6rem, 4vw, 3.65rem);


}

.why-mineder .section-heading h2 em {
color: var(--primary);
font-weight: 400;
}

.why-mineder .section-heading > p:last-child {
max-width: 400px;
margin-top: 22px;
color: var(--gray);
}

/* =========================================
NUMBERED INFORMATION ROWS
========================================= */

.why-list {
border-top: 1px solid rgba(15, 118, 110, 0.17);
}

.why-item {
display: grid;
grid-template-columns: 48px minmax(0, 1fr);
gap: 22px;


padding: 30px 20px;

border-bottom: 1px solid rgba(15, 118, 110, 0.17);
border-left: 2px solid transparent;

transition:
    background var(--transition),
    border-color var(--transition);


}

.why-item:hover {
background: rgba(198, 93, 50, 0.045);
border-left-color: var(--accent);
}

.why-number {
padding-top: 2px;


color: var(--accent);
font-family: var(--font-heading);
font-size: 1.8rem;
font-weight: 400;
line-height: 1.3;


}

.why-item h3 {
margin: 0 0 10px;


color: var(--dark);
font-size: 1.08rem;
font-weight: 750;
line-height: 1.5;


}

.why-item p {
max-width: 520px;
margin: 0;


color: var(--gray);
font-size: 0.94rem;
line-height: 1.9;


}

/* =========================================
ANIMATIONS
========================================= */

@keyframes hero-content-enter {
from {
opacity: 0;
transform: translateY(16px);
}


to {
    opacity: 1;
    transform: translateY(0);
}


}

@keyframes hero-image-enter {
from {
opacity: 0;
transform: translateY(12px);
}


to {
    opacity: 1;
    transform: translateY(0);
}


}

/* =========================================
RESPONSIVE — TABLET
========================================= */

@media (max-width: 900px) {


.hero {
    gap: 4%;
    min-height: 520px;
    padding: 70px 6%;
}

.hero h1 {
    font-size: clamp(2.7rem, 5vw, 3.8rem);
}

.hero-image img {
    height: 360px;
}

.connection {
    padding-block: 80px 90px;
}

.connection-card {
    padding: 30px;
}

.why-mineder {
    padding-block: 85px;
}

.why-mineder .section-container {
    gap: 35px;
}

.why-item {
    grid-template-columns: 40px minmax(0, 1fr);
    gap: 14px;
    padding: 27px 12px;
}


}

/* =========================================
RESPONSIVE — SMALL TABLET
========================================= */

@media (max-width: 750px) {


.hero {
    grid-template-columns: 1fr;
    gap: 38px;
    min-height: auto;
    padding: 65px 7% 75px;
}

.hero-content {
    max-width: 650px;
}

.hero h1 {
    max-width: 620px;
    font-size: clamp(3rem, 8vw, 4.4rem);
}

.hero-description {
    max-width: 580px;
}

.hero-image {
    width: 100%;
    max-width: 600px;
    margin-inline: auto;
}

.hero-image img {
    height: clamp(300px, 55vw, 430px);
}

.why-mineder .section-container {
    grid-template-columns: 1fr;
    gap: 38px;
}

.why-mineder .section-heading {
    position: static;
    max-width: 650px;
}

.why-mineder .section-heading h2 {
    max-width: 600px;
}


}

/* =========================================
RESPONSIVE — MOBILE
========================================= */

@media (max-width: 650px) {


.section-container {
    width: 88%;
}

.hero {
    gap: 32px;
    padding: 58px 6% 65px;
}

.hero h1 {
    font-size: clamp(2.7rem, 10vw, 3.7rem);
}

.hero-description {
    margin-block: 22px 25px;
    font-size: 0.96rem;
}

.hero-image {
    padding: 7px;
}

.hero-image img {
    height: 320px;
}

.hero-image::before {
    top: -12px;
    right: -10px;
}

.section-heading {
    margin-bottom: 32px;
}

.section-heading h2 {
    font-size: clamp(2.3rem, 8vw, 2.9rem);
}

.connection {
    padding-block: 68px 75px;
}

.connection-grid {
    grid-template-columns: 1fr;
    gap: 18px;
}

.connection-card {
    min-height: 0;
    padding: 28px;
}

.connection-card h3 {
    font-size: 1.8rem;
}

.why-mineder {
    padding-block: 72px;
}

.why-mineder .section-container {
    display: block;
}

.why-mineder .section-heading {
    margin-bottom: 35px;
}

.why-mineder .section-heading h2 {
    font-size: clamp(2.5rem, 8.5vw, 3rem);
}

.why-item {
    grid-template-columns: 36px minmax(0, 1fr);
    gap: 14px;
    padding: 24px 10px;
}

.why-number {
    font-size: 1.5rem;
}

.why-item h3 {
    font-size: 1rem;
}


}

/* =========================================
REDUCED MOTION
========================================= */

@media (prefers-reduced-motion: reduce) {


html {
    scroll-behavior: auto;
}

*,
*::before,
*::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
}


}
