/* Earth Original Design — faithful rebuild of the Adobe Portfolio site */
:root {
  --bg: #ededed;
  --band: #e2e2e2;
  --ink: #111;
  --text: #2b2b2b;
  --muted: #6e6e6e;
  --line: #9a9a9a;
  --btn: #222;
  --btn-ink: #fff;
  --wrap: 1040px;
  --font: 'Jost', 'Futura', 'Century Gothic', 'Avenir Next', sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-weight: 300;
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
p { margin: 0 0 1em; }
h1, h2, h3 { color: var(--ink); line-height: 1.1; margin: 0; }
.h3, h3 { font-size: 1.2rem; font-weight: 400; margin-bottom: .4em; }

.skip { position: absolute; left: -9999px; top: 0; background: var(--btn); color: var(--btn-ink); padding: .6em 1em; z-index: 10; }
.skip:focus { left: 1rem; top: 1rem; }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }

.wrap { width: min(var(--wrap), 100% - 32px); margin-inline: auto; }

/* ---------- navigation ---------- */
.nav { padding: 40px 16px 32px; }
.nav ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 28px; }
.nav a {
  text-decoration: none; text-transform: uppercase; letter-spacing: .06em;
  font-size: .78rem; color: #9b9b9b; transition: color .2s;
}
.nav a:hover, .nav a[aria-current="page"] { color: var(--ink); }

/* ---------- home hero ---------- */
.hero {
  background: var(--band);
  min-height: min(78vh, 720px);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-align: center; padding: 72px 16px;
}
.hero-mark { width: clamp(90px, 13vw, 150px); margin-bottom: 26px; }
.hero h1 {
  font-weight: 600; text-transform: uppercase; letter-spacing: .01em;
  font-size: clamp(2.4rem, 7vw, 4.6rem); line-height: 1.05;
}
.tagline { margin: 22px 0 28px; font-size: 1rem; color: var(--text); font-weight: 400; }
.btn-outline {
  display: inline-block; min-width: 180px; padding: 6px 18px;
  border: 1px solid #9a9a9a; text-decoration: none;
  text-transform: uppercase; letter-spacing: .08em; font-size: .68rem; font-weight: 500; color: var(--ink);
  transition: background .2s, color .2s;
}
.btn-outline:hover { background: var(--ink); color: #fff; border-color: var(--ink); }

/* ---------- page title band ---------- */
.band { background: var(--band); text-align: center; padding: 22px 16px 30px; margin-bottom: 18px; }
.band-mark { width: 46px; margin: 0 auto 6px; }
.band h1 { font-weight: 400; text-transform: uppercase; font-size: clamp(2.2rem, 6vw, 3.6rem); letter-spacing: .01em; }

/* ---------- buttons ---------- */
.btn {
  display: block; text-align: center; text-decoration: none;
  background: var(--btn); color: var(--btn-ink);
  font-size: .75rem; font-weight: 500; letter-spacing: .02em; padding: 7px 14px;
  transition: background .2s;
}
.btn:hover { background: #000; }
.btn-wide { padding: 13px 14px; margin: 26px 0; }
.btn-small { margin-top: 14px; }

/* ---------- home sections ---------- */
.intro { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; align-items: center; margin-top: 8px; }
.intro-text { text-align: right; padding-right: 12px; }
.intro-text p { color: var(--muted); font-size: .92rem; }

.divider { border-top: 1px dotted var(--line); border-bottom: 1px dotted var(--line); padding: 28px 0; margin: 28px 0 32px; text-align: center; }
.divider h2 { text-transform: uppercase; font-weight: 600; font-size: clamp(1.6rem, 3.4vw, 2.1rem); letter-spacing: .01em; }

.feature { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; margin: 0 auto 36px; max-width: 880px; }
.feature-text { text-align: right; }
.feature-text p { color: var(--muted); font-size: .9rem; }
.feature-media { max-width: 330px; }
.feature.flip .feature-text { order: 2; text-align: left; }
.feature.flip .feature-media { order: 1; justify-self: end; }
.feature-media img { aspect-ratio: 1; object-fit: cover; width: 100%; }

.services { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.service { text-align: center; }
.service p { color: var(--muted); font-size: .88rem; margin-bottom: 14px; }
.service img { aspect-ratio: 1; object-fit: cover; width: 100%; }

.cta { text-align: center; border-top: 1px dotted var(--line); margin-top: 28px; padding-top: 36px; }
.cta p { color: var(--muted); }

/* ---------- about / contact split ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; align-items: start; }
.split-img { width: 100%; aspect-ratio: 1; object-fit: cover; }
.prose { padding-top: 14px; font-size: .95rem; }
.prose .h3 { margin-top: 1.4em; }
.contact dl { display: grid; grid-template-columns: max-content 1fr; gap: 6px 18px; margin: 1.4em 0; }
.contact dt { font-weight: 500; color: var(--ink); }
.contact dd { margin: 0; overflow-wrap: anywhere; }

/* ---------- project grid ---------- */
.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.tile { position: relative; display: block; overflow: hidden; text-decoration: none; background: #ddd; }
.tile img { width: 100%; aspect-ratio: 1; object-fit: cover; transition: transform .5s ease, opacity .3s; }
.tile-label {
  position: absolute; inset: auto 0 0 0; padding: 14px 16px;
  background: linear-gradient(to top, rgba(0,0,0,.65), rgba(0,0,0,0));
  color: #fff; display: flex; flex-direction: column; font-size: .8rem;
}
.tile-label strong { font-weight: 500; font-size: 1rem; }
@media (hover: hover) {
  .tile-label { opacity: 0; transition: opacity .3s; }
  .tile:hover .tile-label, .tile:focus-visible .tile-label { opacity: 1; }
  .tile:hover img { transform: scale(1.03); }
}

/* ---------- project / service article ---------- */
.article { max-width: 860px; font-size: 1rem; }
.article > p, .article > .h3 { max-width: 680px; margin-inline: auto; }
.article > .h3 { margin-top: 1.8em; }
.meta { text-align: center; text-transform: uppercase; letter-spacing: .08em; font-size: .72rem; color: var(--muted); margin-bottom: 24px !important; }
.lead { font-size: 1.25rem; color: var(--ink); font-weight: 400; line-height: 1.4; }
.figure { margin: 34px auto; }
.figure img { width: 100%; }
.figure figcaption, .caption { font-size: .72rem; color: var(--muted); margin-top: 8px; text-align: center; max-width: none !important; }
.pair { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; margin: 34px 0 0; }
.pair .figure { margin: 0; }
.pair .figure img { aspect-ratio: 4 / 5; object-fit: cover; }
.pair + p, .pair + .h3 { margin-top: 34px; }
.cta-inline { max-width: none !important; }
.pager { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; border-top: 1px dotted var(--line); margin-top: 48px; padding-top: 20px; font-size: .85rem; }
.pager a { text-decoration: none; color: var(--muted); }
.pager a:hover { color: var(--ink); }

/* ---------- footer ---------- */
.footer { text-align: center; padding: 72px 16px 48px; font-size: .72rem; color: var(--muted); }
.footer p { margin: 0 0 10px; }
.footer a { text-decoration: none; }
.footer a:hover { color: var(--ink); }
.back-top { display: inline-block; margin-bottom: 30px; font-size: .78rem; }
.social { display: flex; justify-content: center; gap: 16px; margin-bottom: 18px; }
.social a { color: #8a8a8a; display: inline-flex; }
.footer-links { text-transform: uppercase; letter-spacing: .04em; color: var(--text); }
.footer-name { font-weight: 600; text-transform: uppercase; color: var(--ink); margin-top: 14px !important; margin-bottom: 2px !important; }
.copy { margin-top: 14px !important; }

/* ---------- small screens ---------- */
@media (max-width: 760px) {
  .nav { padding: 24px 16px 20px; }
  .nav ul { gap: 6px 18px; }
  .intro, .feature, .services, .split { grid-template-columns: 1fr; }
  .intro-text, .feature-text, .feature.flip .feature-text { text-align: left; padding: 0; order: 0; }
  .feature { gap: 16px; margin-bottom: 44px; }
  .feature-media, .feature.flip .feature-media { order: 1; max-width: none; justify-self: stretch; }
  .services { gap: 36px; }
  .grid { grid-template-columns: repeat(2, 1fr); }
  .pair { grid-template-columns: 1fr; }
  .pair .figure img { aspect-ratio: auto; }
  .lead { font-size: 1.1rem; }
}
@media (max-width: 420px) {
  .grid, .grid-2 { grid-template-columns: 1fr; }
}
