/* Epha Studio — shared styles */
:root {
  --coral: #E0503A;        /* brand coral (large text / shapes) */
  --coral-deep: #B83C28;   /* coral for small text and buttons (accessible) */
  --blush: #FBEDEA;
  --pink: #FFBDB6;
  --ink: #1C1917;
  --ink-2: #44403C;
  --ink-3: #57534E;
  --line: #E7E5E4;
  --white: #FFFFFF;
  --serif: 'Instrument Serif', Georgia, serif;
  --sans: 'Hanken Grotesk', system-ui, -apple-system, 'Segoe UI', sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--white); color: var(--ink); font-family: var(--sans); -webkit-font-smoothing: antialiased; }
img { display: block; max-width: 100%; height: auto; }
a { color: var(--coral-deep); }
a:hover { color: #8E2C1C; }
a:focus-visible, button:focus-visible { outline: 2px solid var(--coral-deep); outline-offset: 3px; }

.wrap { max-width: 1280px; margin: 0 auto; padding: 0 32px; }
.eyebrow { margin: 0; font-size: 14px; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--coral-deep); }
.serif { font-family: var(--serif); font-weight: 400; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.serif em { font-style: italic; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 52px; padding: 0 28px; border-radius: 999px; font: inherit; font-size: 16px; font-weight: 600; text-decoration: none; cursor: pointer; transition: transform .15s ease, background-color .15s ease; }
.btn:hover { transform: translateY(-1px); }
.btn-coral { background: var(--coral-deep); color: var(--white); }
.btn-coral:hover { background: #A33522; color: var(--white); }
.btn-dark { background: var(--ink); color: var(--white); }
.btn-dark:hover { background: #000; color: var(--white); }
.btn-outline { border: 1.5px solid var(--ink); color: var(--ink); font-weight: 500; background: transparent; }
.btn-outline:hover { background: var(--ink); color: var(--white); }

/* ---------- Brand home (/) ---------- */
.home { min-height: 100vh; min-height: 100svh; background: var(--coral); display: flex; flex-direction: column; }
.home main { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 40px; padding: 64px 24px; text-align: center; }
.home .logo { width: min(220px, 52vw); height: auto; }
.home .tagline { margin: 0; font-size: 15px; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase; color: var(--ink); }
.home .doors { display: flex; flex-wrap: wrap; justify-content: center; gap: 16px; }
.door { display: inline-flex; align-items: center; justify-content: center; gap: 12px; min-width: 220px; min-height: 64px; padding: 0 32px; border-radius: 999px; background: var(--white); color: var(--ink); text-decoration: none; font-family: var(--serif); font-size: 30px; transition: transform .15s ease, background-color .15s ease, color .15s ease; }
.door:hover { background: var(--ink); color: var(--white); transform: translateY(-2px); }
.door span { font-family: var(--sans); font-size: 18px; }
.home footer { padding: 24px; text-align: center; font-size: 14px; color: var(--ink); }

/* ---------- Header ---------- */
.site-header .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; padding-top: 24px; padding-bottom: 24px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--ink); }
.brand img { width: 48px; height: 48px; }
.brand span { font-size: 15px; font-weight: 500; letter-spacing: 0.04em; }
.site-nav { display: flex; flex-wrap: wrap; align-items: center; gap: 28px; font-size: 16px; }
.site-nav a { color: var(--ink); text-decoration: none; }
.site-nav a:hover { color: var(--coral-deep); }
.site-nav .btn { min-height: 44px; padding: 0 20px; font-size: 15px; font-weight: 500; }
.site-nav .btn, .site-nav .btn:hover { color: var(--white); }

/* ---------- Hero ---------- */
.hero .wrap { display: flex; flex-wrap: wrap; align-items: center; gap: 56px; padding-top: 48px; padding-bottom: 96px; }
.hero-text { flex: 1 1 440px; min-width: 0; display: flex; flex-direction: column; gap: 28px; }
.hero h1 { margin: 0; font-size: clamp(52px, 7vw, 96px); line-height: 0.98; letter-spacing: -0.01em; }
.hero h1 em { color: var(--coral); }
.hero p.lead { margin: 0; font-size: 19px; line-height: 1.6; color: var(--ink-2); max-width: 34ch; }
.hero .actions { display: flex; flex-wrap: wrap; gap: 12px; }
.hero-photo { flex: 1 1 480px; min-width: 0; position: relative; }
.hero-photo img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: 50% 30%; border-top-left-radius: 50% 40%; background: #E8D9D2; }
.hero-photo::after { content: ''; position: absolute; right: -16px; bottom: -16px; width: 96px; height: 96px; background: var(--coral); border-top-left-radius: 96px; }

/* ---------- Gallery ---------- */
.work { background: var(--blush); padding: 96px 0; }
.section-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: 48px; }
.section-head h2 { margin: 0; font-size: clamp(40px, 5vw, 64px); line-height: 1; }
.section-head p { margin: 0; font-size: 17px; line-height: 1.6; color: var(--ink-2); max-width: 40ch; }
.masonry { column-width: 420px; column-gap: 20px; }
.masonry img { width: 100%; height: auto; margin: 0 0 20px; break-inside: avoid; background: #E8D9D2; }
.masonry img.round { border-top-left-radius: 50% 40%; }

/* ---------- Testimonials (shown when filled in) ---------- */
.words { padding: 112px 0; }
.words .grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 24px; }
.quote { margin: 0; padding: 40px 32px 32px; background: var(--blush); display: flex; flex-direction: column; gap: 24px; }
.quote:first-child { border-top-left-radius: 120px; }
.quote .mark { font-family: var(--serif); font-size: 88px; line-height: 0.6; color: var(--coral); }
.quote blockquote { margin: 0; font-family: var(--serif); font-size: 26px; line-height: 1.35; color: #292524; }
.quote figcaption { font-size: 15px; }
.quote figcaption span { color: var(--ink-3); }

/* ---------- Contact ---------- */
.contact { padding: 96px 0; }
.contact-box { background: var(--coral); border-top-left-radius: 240px; padding: 88px 64px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 32px; }
.contact-box h2 { margin: 0; flex: 1 1 420px; font-size: clamp(40px, 5vw, 72px); line-height: 1; color: var(--white); }
.contact-box .side { flex: 0 1 360px; display: flex; flex-direction: column; gap: 12px; }
.contact-box .side .btn { min-height: 56px; font-size: 17px; }
.contact-box .side p { margin: 0; text-align: center; font-size: 16px; color: var(--ink); }
.contact-box .side p a { color: var(--ink); }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--line); }
.site-footer .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; padding-top: 32px; padding-bottom: 32px; font-size: 15px; color: var(--ink-3); }
.site-footer .left { display: flex; align-items: center; gap: 12px; }
.site-footer img { width: 36px; height: 36px; }
.site-footer a { font-weight: 500; }

/* ---------- Simple pages (gallery / motion placeholders) ---------- */
.simple { min-height: 100vh; min-height: 100svh; display: flex; flex-wrap: wrap; }
.simple .photo { flex: 1 1 520px; min-height: 320px; position: relative; background: #2A2422; overflow: hidden; }
.simple .photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 40% 30%; }
.simple .photo::after { content: ''; position: absolute; top: 0; left: 0; width: 32%; aspect-ratio: 1 / 1; background: var(--coral); border-bottom-right-radius: 100%; }
.simple main { flex: 1 1 480px; min-width: 0; display: flex; align-items: center; justify-content: center; padding: 56px 32px; }
.simple .box { width: 100%; max-width: 440px; display: flex; flex-direction: column; gap: 28px; }
.simple .box img.mark { width: 56px; height: 56px; }
.simple h1 { margin: 0; font-size: 56px; line-height: 1; }
.simple h1 em { color: var(--coral); }
.simple p { margin: 0; font-size: 17px; line-height: 1.6; color: var(--ink-2); }
.simple .eyebrow { font-size: 13px; color: var(--coral-deep); }
.ig-handle { display: inline-flex; align-items: center; gap: 12px; align-self: flex-start; font-family: var(--serif); font-size: 40px; line-height: 1; color: var(--ink); text-decoration: none; border-bottom: 2px solid var(--coral); padding-bottom: 6px; }
.ig-handle:hover { color: var(--coral-deep); }

/* ---------- Small screens ---------- */
@media (max-width: 640px) {
  .wrap { padding: 0 20px; }
  .site-nav { gap: 18px; font-size: 15px; }
  .hero .wrap { padding-top: 16px; padding-bottom: 72px; gap: 40px; }
  .hero-photo::after { right: -8px; bottom: -8px; width: 64px; height: 64px; border-top-left-radius: 64px; }
  .work { padding: 72px 0; }
  .contact { padding: 72px 0; }
  .contact-box { border-top-left-radius: 120px; padding: 72px 28px 40px; }
  .simple .photo { flex-basis: 100%; min-height: 260px; }
  .simple h1 { font-size: 44px; }
}
