/* ─── Tony Mckinlay — Site Styles ─────────────────────────── */

:root {
  --bg: #fbfbfa;
  --fg: #1a1a1a;
  --muted: #4b5563;
  --hair: #e7e5e4;
  --card: #ffffff;
  --shadow: 0 10px 30px rgba(0,0,0,.06);
  --radius: 18px;
  --max: 1080px;
  --accent: #b8963e;
  --accent-dim: #8f7a45;
  --construction: #4a6fa5;
  --hospitality: #a65d57;
  --warm-bg: #f5f0e8;
  --sketch: 'Caveat', cursive;
  --sans: 'Inter', ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html, body { height: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--sans);
  font-weight: 400;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

a { color: inherit; text-decoration: none; }
a:hover { opacity: .85; }
img { display: block; max-width: 100%; }

.container { max-width: var(--max); margin: 0 auto; padding: 0 22px; }

/* ─── Navigation ─────────────────────────────────────────── */
.nav {
  position: sticky; top: 0; z-index: 10;
  backdrop-filter: saturate(180%) blur(10px);
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  border-bottom: 1px solid var(--hair);
}
.nav-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 14px 0; }
.brand { display: flex; flex-direction: column; gap: 2px; }
.brand .name { font-weight: 650; letter-spacing: .2px; font-size: 17px; }
.links { display: flex; gap: 6px; flex-wrap: wrap; }
.links a { color: var(--muted); font-size: 14px; padding: 6px 10px; border-radius: 12px; transition: all .15s; }
.links a.active, .links a:hover { color: var(--fg); background: color-mix(in srgb, var(--hair) 55%, transparent); }

/* ─── Hero ───────────────────────────────────────────────── */
.hero { padding: 64px 0 32px; }
.hero-title {
  font-family: var(--sketch);
  font-weight: 700;
  font-size: clamp(36px, 6vw, 56px);
  line-height: 1.15;
  color: var(--fg);
  margin: 0 0 18px;
}
.lede { font-size: 17px; color: var(--muted); max-width: 65ch; line-height: 1.7; }

/* ─── Section Headings ───────────────────────────────────── */
.section { padding: 24px 0 44px; }
.section-heading {
  margin: 0 0 14px;
  font-size: 14px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--muted);
}
.sketch-heading {
  font-family: var(--sketch);
  font-size: 32px;
  font-weight: 700;
  color: var(--fg);
  margin: 0 0 12px;
}

/* ─── Grid ───────────────────────────────────────────────── */
.grid { display: grid; gap: 16px; }
@media(min-width: 700px) { .grid.cols2 { grid-template-columns: 1fr 1fr; } }
@media(min-width: 900px) { .grid.cols3 { grid-template-columns: 1fr 1fr 1fr; } }

/* ─── Pillar Cards ───────────────────────────────────────── */
.pillar-card {
  background: var(--card);
  border: 1px solid var(--hair);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 28px 22px;
  position: relative;
}
.pillar-sketch-icon { font-size: 28px; margin-bottom: 10px; }
.pillar-title {
  font-family: var(--sketch);
  font-size: 24px;
  font-weight: 700;
  margin: 0 0 8px;
  color: var(--fg);
}
.pillar-card p { margin: 0 0 14px; color: var(--muted); font-size: 15px; }
.pillar-link {
  font-size: 14px;
  font-weight: 500;
  color: var(--accent);
}
.pillar-link:hover { color: var(--accent-dim); opacity: 1; }

/* Sketch underline effect */
.sketch-underline {
  position: relative;
  display: inline-block;
}
.sketch-underline::after {
  content: '';
  position: absolute;
  left: -2px;
  right: -2px;
  bottom: -2px;
  height: 6px;
  background: linear-gradient(90deg, var(--accent), var(--accent-dim));
  opacity: .3;
  border-radius: 4px;
  transform: rotate(-0.5deg);
}

/* ─── Feature Cards (Photo) ──────────────────────────────── */
.feature-card {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius);
  aspect-ratio: 4/3;
  display: block;
}
.feature-card img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .5s ease;
}
.feature-card:hover img { transform: scale(1.03); }
.feature-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(10,10,10,.8) 0%, rgba(10,10,10,.15) 50%, transparent 100%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 22px;
  color: #fff;
  opacity: 0;
  transition: opacity .35s ease;
}
.feature-card:hover .feature-overlay { opacity: 1; }
.feature-label {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 4px;
}
.feature-overlay strong { font-size: 18px; display: block; margin-bottom: 4px; }
.feature-meta { font-size: 13px; color: rgba(255,255,255,.7); }

/* ─── Gallery (Project Pages) ────────────────────────────── */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 3px;
}
.gallery-item {
  position: relative;
  overflow: hidden;
  aspect-ratio: 4/3;
}
.gallery-item.tall { aspect-ratio: 3/4; grid-row: span 2; }
.gallery-item.wide { grid-column: span 2; }
.gallery-item.hero-shot { grid-column: span 2; grid-row: span 2; }
.gallery-item img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .45s ease;
}
.gallery-item:hover img { transform: scale(1.04); }
.gallery-caption {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(10,10,10,.75) 0%, transparent 50%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 16px;
  opacity: 0;
  transition: opacity .3s;
}
.gallery-item:hover .gallery-caption { opacity: 1; }
.gallery-caption strong { color: #fff; font-size: 15px; }
.gallery-caption span { color: rgba(255,255,255,.65); font-size: 12px; }

/* ─── Project Header (on project pages) ──────────────────── */
.project-hero {
  padding: 54px 0 22px;
}
.project-hero .kicker {
  font-size: 12px;
  letter-spacing: .15em;
  text-transform: uppercase;
  color: var(--muted);
}
.project-hero h1 {
  font-family: var(--sketch);
  font-weight: 700;
  font-size: clamp(32px, 5vw, 48px);
  line-height: 1.15;
  margin: 10px 0 14px;
  color: var(--fg);
}

/* ─── Project Detail Cards ───────────────────────────────── */
.project-detail {
  background: var(--card);
  border: 1px solid var(--hair);
  border-radius: var(--radius);
  padding: 24px;
  margin-bottom: 16px;
}
.project-detail h3 {
  font-family: var(--sketch);
  font-size: 24px;
  font-weight: 700;
  margin: 0 0 4px;
  color: var(--fg);
}
.project-detail .project-meta {
  font-size: 13px;
  color: var(--accent-dim);
  margin-bottom: 10px;
}
.project-detail p { color: var(--muted); margin: 0; }

/* ─── Journey Page (Excalidraw) ──────────────────────────── */
.journey-board {
  background: #fefcf8;
  border: 2px solid var(--hair);
  border-radius: 12px;
  padding: 48px 32px;
  position: relative;
  overflow: hidden;
}
/* Grid dots background */
.journey-board::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle, #d4d0c8 1px, transparent 1px);
  background-size: 24px 24px;
  opacity: .4;
  pointer-events: none;
}

.journey-title {
  font-family: var(--sketch);
  font-size: clamp(32px, 5vw, 48px);
  font-weight: 700;
  color: var(--fg);
  text-align: center;
  margin-bottom: 8px;
  position: relative;
}
.journey-subtitle {
  font-family: var(--sketch);
  font-size: 20px;
  color: var(--muted);
  text-align: center;
  margin-bottom: 48px;
  position: relative;
}

.journey-nodes {
  display: flex;
  flex-direction: column;
  gap: 0;
  position: relative;
  max-width: 800px;
  margin: 0 auto;
}

.journey-node {
  position: relative;
  padding: 20px 24px;
  border: 2px solid;
  border-radius: 10px;
  margin-bottom: 32px;
  background: rgba(255,255,255,.7);
  transform: rotate(var(--tilt, 0deg));
}
.journey-node .node-label {
  font-family: var(--sketch);
  font-size: 22px;
  font-weight: 700;
  margin: 0 0 4px;
}
.journey-node .node-text {
  font-family: var(--sketch);
  font-size: 17px;
  color: var(--muted);
  margin: 0;
}
.journey-node .node-date {
  font-family: var(--sketch);
  font-size: 14px;
  color: var(--muted);
  opacity: .7;
}

/* Connector between nodes */
.journey-connector {
  width: 3px;
  height: 32px;
  background: var(--hair);
  margin: -32px auto 0;
  position: relative;
  z-index: -1;
}

/* Node colour variants */
.node-hospitality { border-color: var(--hospitality); --tilt: -0.5deg; }
.node-hospitality .node-label { color: var(--hospitality); }
.node-property { border-color: var(--accent); --tilt: 0.3deg; }
.node-property .node-label { color: var(--accent); }
.node-construction { border-color: var(--construction); --tilt: -0.4deg; }
.node-construction .node-label { color: var(--construction); }
.node-gap { border-color: #6b7280; border-style: dashed; --tilt: 0.2deg; }
.node-gap .node-label { color: #6b7280; }
.node-ai { border-color: var(--accent); background: rgba(184,150,62,.08); --tilt: -0.3deg; }
.node-ai .node-label { color: var(--accent); }
.node-now { border-color: #059669; background: rgba(5,150,105,.06); --tilt: 0.4deg; }
.node-now .node-label { color: #059669; }

.journey-footnote {
  font-family: var(--sketch);
  font-size: 18px;
  color: var(--muted);
  text-align: center;
  margin-top: 32px;
  position: relative;
}

/* ─── Journey Teaser (Home Page) ─────────────────────────── */
.journey-teaser {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 32px;
  align-items: center;
  padding: 28px;
  border: 1px solid var(--hair);
  border-radius: var(--radius);
  background: var(--warm-bg);
}
.journey-teaser-text p { color: var(--muted); margin: 0 0 14px; }
.sketch-svg { width: 280px; height: 100px; }
@media(max-width: 700px) {
  .journey-teaser { grid-template-columns: 1fr; }
  .journey-teaser-sketch { display: none; }
}

/* ─── Standard Components ────────────────────────────────── */
.card {
  background: var(--card);
  border: 1px solid var(--hair);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 18px;
}
.card h2 { margin: 0 0 8px; font-size: 16px; letter-spacing: .2px; }
.card p { margin: 0; color: var(--muted); }

hr.sep { border: 0; border-top: 1px solid var(--hair); margin: 28px 0; }

.list { display: grid; gap: 12px; }
.item {
  padding: 14px;
  border: 1px solid var(--hair);
  border-radius: 16px;
  background: color-mix(in srgb, var(--card) 90%, transparent);
}
.item .title { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.item .title b { font-size: 16px; }
.item .meta { color: var(--muted); font-size: 13px; }
.item p { margin: 8px 0 0; color: var(--muted); }

.pills { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.pill {
  font-size: 12px;
  color: color-mix(in srgb, var(--fg) 70%, var(--muted));
  border: 1px solid var(--hair);
  padding: 6px 10px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--hair) 28%, transparent);
}

.cta {
  display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap;
  padding: 22px;
  border-radius: var(--radius);
  border: 1px solid var(--hair);
  background: linear-gradient(180deg, color-mix(in srgb, var(--card) 92%, transparent), color-mix(in srgb, var(--hair) 18%, transparent));
  margin-bottom: 32px;
}
.cta strong { font-size: 16px; }
.cta .small { color: var(--muted); max-width: 68ch; }

.button {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 10px 16px;
  border-radius: 14px;
  border: 1px solid var(--hair);
  background: var(--card);
  box-shadow: 0 8px 20px rgba(0,0,0,.05);
  font-size: 14px;
  font-weight: 500;
  transition: all .15s;
}
.button:hover { border-color: var(--accent); opacity: 1; }

.footer { padding: 28px 0 44px; color: var(--muted); font-size: 13px; }
.note { font-size: 13px; color: var(--muted); }

/* ─── Responsive ─────────────────────────────────────────── */
@media(max-width: 700px) {
  .gallery-grid { grid-template-columns: 1fr 1fr; }
  .gallery-item.hero-shot { grid-column: span 2; grid-row: span 1; }
  .gallery-item.wide { grid-column: span 2; }
  .gallery-item.tall { grid-row: span 1; }
}
@media(max-width: 480px) {
  .gallery-grid { grid-template-columns: 1fr; }
  .gallery-item.hero-shot, .gallery-item.wide { grid-column: span 1; }
  .links { gap: 2px; }
  .links a { font-size: 13px; padding: 5px 7px; }
}
