/* Homepage, light drawing-sheet layout. Loaded after styles.css (no midnight.css on this page). */

.home { --rule: #cfc8ba; --faint: rgba(35, 60, 102, 0.07); font-family: Arial, Helvetica, sans-serif; }
.home main > section { padding: clamp(56px, 7vw, 104px) clamp(20px, 5vw, 72px); }
.home .wrap { max-width: 1280px; margin: 0 auto; }
.home h1, .home h2 { font-family: Georgia, "Times New Roman", serif; font-weight: 500; letter-spacing: -0.01em; }
.home h1 { font-size: clamp(2.4rem, 4.1vw, 3.9rem); line-height: 1.06; max-width: 16ch; }
.home h2 { font-size: clamp(1.9rem, 3vw, 2.9rem); line-height: 1.1; max-width: none; }
.home p { margin: 0; }

/* Header */
.home .site-header { min-height: 68px; }
.home .mark { display: flex; align-items: baseline; gap: 12px; text-decoration: none; font-weight: 700; letter-spacing: 0.22em; font-size: 0.95rem; }
.home .mark small { font-weight: 400; letter-spacing: 0.22em; font-size: 0.72rem; color: var(--muted); }
.home .site-nav { gap: 30px; }

/* Annotation lettering, as on a drawing */
.note { font-size: 0.7rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted); }

/* Hero */
.home .hero-sheet { background: linear-gradient(90deg, var(--faint) 1px, transparent 1px), linear-gradient(0deg, var(--faint) 1px, transparent 1px), var(--white); background-size: 56px 56px; border-bottom: 1px solid var(--line); }
.hero-grid { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: clamp(32px, 5vw, 80px); align-items: center; }
.hero-grid .intro { margin-top: 24px; max-width: 34ch; font-size: clamp(1.05rem, 1.35vw, 1.25rem); line-height: 1.5; color: var(--muted); }
.home .hero-actions { margin-top: 32px; }
.home .button { border-radius: 0; min-height: 46px; font-size: 0.95rem; }
.drawing { margin: 0; background: var(--white); border: 1px solid var(--ink); }
.drawing svg { display: block; width: 100%; height: auto; }
.drawing figcaption { display: flex; justify-content: space-between; gap: 16px; padding: 10px 16px; border-top: 1px solid var(--ink); }
.drawing a { color: var(--blue); }

/* Section heads */
.head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; padding-bottom: 20px; margin-bottom: 28px; border-bottom: 1px solid var(--ink); }
.head a { color: var(--blue); font-size: 0.95rem; white-space: nowrap; text-underline-offset: 4px; }

/* Work */
.work { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(18px, 2vw, 28px); }
.tile { display: flex; flex-direction: column; color: inherit; text-decoration: none; }
.tile img { display: block; width: 100%; aspect-ratio: 3 / 2; object-fit: cover; border: 1px solid var(--rule); background: var(--white); }
.tile .note { margin-top: 14px; }
.tile h3 { margin-top: 6px; font-family: Georgia, "Times New Roman", serif; font-weight: 500; font-size: 1.3rem; line-height: 1.2; }
.tile p { margin-top: 6px; color: var(--muted); font-size: 0.97rem; line-height: 1.45; }
.tile:hover h3, .tile:focus-visible h3 { color: var(--blue); text-decoration: underline; text-underline-offset: 5px; text-decoration-thickness: 1px; }
.tile.lead { grid-column: span 2; grid-row: span 2; }
.tile.lead img { aspect-ratio: auto; flex: 1; min-height: 0; height: 100%; }
.tile.lead h3 { font-size: clamp(1.5rem, 2.2vw, 2rem); }

/* Findings */
.findings { background: var(--white); border-block: 1px solid var(--line); }
.figures { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.figures a { display: block; padding: 4px 28px 4px 0; margin-right: 28px; border-right: 1px solid var(--rule); color: inherit; text-decoration: none; }
.figures a:last-child { border-right: 0; margin-right: 0; padding-right: 0; }
.figures strong { display: block; font-family: Georgia, "Times New Roman", serif; font-weight: 500; font-size: clamp(2.1rem, 3.3vw, 3.2rem); line-height: 1; letter-spacing: -0.02em; white-space: nowrap; }
.figures strong span { font-size: 0.45em; letter-spacing: 0; color: var(--muted); }
.figures p { margin-top: 14px; color: var(--muted); font-size: 0.97rem; line-height: 1.45; max-width: 26ch; }
.figures a:hover strong, .figures a:focus-visible strong { color: var(--blue); }

/* Working with me */
.ways { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(24px, 4vw, 56px); }
.ways h3 { font-family: Georgia, "Times New Roman", serif; font-weight: 500; font-size: 1.4rem; }
.ways p { margin-top: 10px; color: var(--muted); line-height: 1.5; max-width: 34ch; }
.sequence { list-style: none; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; margin: 48px 0 0; padding: 0; border: 1px solid var(--ink); background: var(--white); counter-reset: s; }
.sequence li { counter-increment: s; display: flex; gap: 14px; align-items: baseline; padding: 20px 24px; border-right: 1px solid var(--rule); }
.sequence li:last-child { border-right: 0; }
.sequence li::before { content: counter(s); font-family: Georgia, serif; font-size: 1.5rem; color: var(--red); }
.sequence .note { display: block; margin-top: 4px; letter-spacing: 0.06em; text-transform: none; font-size: 0.88rem; }

/* About */
.about-row { display: grid; grid-template-columns: 300px minmax(0, 1fr); gap: clamp(28px, 5vw, 72px); align-items: start; }
.about-row img { display: block; width: 100%; height: auto; border: 1px solid var(--ink); padding: 6px; background: var(--white); }
.about-row p { margin-top: 18px; max-width: 58ch; color: var(--muted); font-size: 1.05rem; line-height: 1.6; }
.about-row p a { color: var(--blue); text-underline-offset: 4px; }

/* Contact */
.home .contact { background: var(--ink); color: var(--paper); border: 0; }
.home .contact .wrap { display: flex; align-items: center; justify-content: space-between; gap: 32px; flex-wrap: wrap; width: 100%; }
.home .contact p { margin-top: 12px; color: #b6b2ab; font-size: 1.05rem; max-width: 60ch; }
.home .contact .button { background: var(--paper); border-color: var(--paper); color: var(--ink); }
.home .site-footer { font-size: 0.9rem; }

@media (max-width: 980px) {
  .hero-grid { grid-template-columns: 1fr; }
  .home h1 { max-width: 16ch; }
  .work { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tile.lead { grid-row: auto; }
  .tile.lead img { aspect-ratio: 16 / 10; height: auto; }
  .figures { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 36px; }
  .figures a:nth-child(2) { border-right: 0; margin-right: 0; }
  .ways, .sequence { grid-template-columns: 1fr; }
  .sequence li { border-right: 0; border-bottom: 1px solid var(--rule); }
  .sequence li:last-child { border-bottom: 0; }
  .about-row { grid-template-columns: 1fr; }
  .about-row img { max-width: 260px; }
}
@media (max-width: 720px) {
  .home .mark small { display: none; }
  .head { flex-direction: column; align-items: flex-start; gap: 10px; }
}
@media (max-width: 560px) {
  .work { grid-template-columns: 1fr; }
  .tile.lead { grid-column: auto; }
  .figures { grid-template-columns: 1fr; }
  .figures a { border-right: 0; margin-right: 0; padding-right: 0; }
}

/* Logo and drawing-sheet details carried over from the original site */
.home .mark img { display: block; width: 210px; height: auto; }
.home .site-header { min-height: 96px; }
.drawing { position: relative; box-shadow: var(--shadow); background: linear-gradient(90deg, rgba(22,24,27,0.045) 1px, transparent 1px), linear-gradient(0deg, rgba(22,24,27,0.045) 1px, transparent 1px), var(--white); background-size: 14px 14px; }
.drawing figcaption { background: var(--white); }
.drawing .tick { position: absolute; top: 12px; width: 9px; height: 9px; border: 1px solid var(--red); }
.drawing .tick:nth-child(1) { left: 12px; border-right: 0; border-bottom: 0; }
.drawing .tick:nth-child(2) { right: 12px; border-left: 0; border-bottom: 0; }
@media (max-width: 720px) { .home .mark img { width: 170px; } .home .site-header { min-height: 76px; align-items: center; } }

/* One navigation on every page */
.global-nav { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 28px; font-size: 0.92rem; }
.global-nav a { color: var(--muted); text-decoration: none; padding: 6px 0; border-bottom: 1px solid transparent; }
.global-nav a:hover, .global-nav a:focus-visible { color: var(--ink); }
.home .site-header { flex-wrap: wrap; gap: 12px 24px; align-items: center; }

/* Project bar: every project, on every page */
.project-bar { display: flex; align-items: center; gap: 18px; padding: 0 clamp(18px, 4vw, 56px); background: #16181b; color: #f6f3ed; font-family: Arial, Helvetica, sans-serif; font-size: 0.8rem; max-width: none; margin: 0; }
.project-bar span { flex: none; font-size: 0.68rem; letter-spacing: 0.16em; text-transform: uppercase; color: #b6b2ab; }
.project-bar div { display: flex; gap: 0; overflow-x: auto; scrollbar-width: none; flex: 1; justify-content: space-between; }
.project-bar div::-webkit-scrollbar { display: none; }
.project-bar a { flex: none; padding: 11px 9px; color: #f6f3ed; text-decoration: none; white-space: nowrap; border-bottom: 2px solid transparent; }
.project-bar a:hover, .project-bar a:focus-visible { border-bottom-color: #f6f3ed; }
@media (max-width: 1100px) { .project-bar div { justify-content: flex-start; } }

/* Full project gallery */
.work { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.tile h3 { font-size: 1.18rem; }
.tile p { font-size: 0.92rem; }
.tile.more { justify-content: flex-end; padding: 22px; border: 1px solid var(--ink); background: var(--white); }
.tile.more .big { font-family: Georgia, serif; font-size: clamp(3rem, 5vw, 4.6rem); line-height: 1; margin-bottom: auto; color: var(--red); }
.tile.more .note { margin-top: 0; }
@media (max-width: 1180px) { .work { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 980px) { .work { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .work { grid-template-columns: 1fr; } .tile.more .big { margin-bottom: 24px; } }

/* Contact links */
.contact-links { display: flex; align-items: center; gap: 22px; flex-wrap: wrap; }
.home .contact .contact-alt { color: var(--paper); text-underline-offset: 4px; }
