:root {
  --ink: #16242f;
  --ink-soft: #3d4a54;
  --muted: #6d7379;
  --cream: #faf5ec;
  --linen: #f2e9da;
  --sand: #e6d8c2;
  --line: #e0d4c0;
  --ember: #b8552f;
  --ember-dark: #9a4423;
  --gold: #f0c48a;
  --white: #fffdf9;

  --serif: 'Fraunces', 'Iowan Old Style', Georgia, serif;
  --sans: 'DM Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;

  --wrap: 1180px;
  --gutter: clamp(20px, 5vw, 48px);
  --radius: 18px;
  --shadow: 0 30px 60px -30px rgba(22, 36, 47, .35);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.7;
  color: var(--ink-soft);
  background: var(--cream);
  -webkit-font-smoothing: antialiased;
}
img, svg, iframe { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--serif); color: var(--ink); font-weight: 400; line-height: 1.12; margin: 0; letter-spacing: -.015em; }
h2 { font-size: clamp(2rem, 4.2vw, 3.1rem); text-wrap: balance; }
h3 { font-size: 1.3rem; }
p { margin: 0 0 1.1em; }
ul { list-style: none; margin: 0; padding: 0; }
address { font-style: normal; }
em { font-style: italic; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding-inline: var(--gutter); }
.section { padding-block: clamp(72px, 10vw, 136px); }
.section__head { max-width: 720px; margin-bottom: clamp(40px, 6vw, 72px); }
.section__head .lead { margin-top: 20px; }

.skip { position: absolute; left: -999px; top: 8px; background: var(--white); padding: 10px 16px; border-radius: 8px; z-index: 100; }
.skip:focus { left: 8px; }

.eyebrow {
  font-size: .78rem; font-weight: 600; letter-spacing: .2em; text-transform: uppercase;
  color: var(--ember); margin-bottom: 18px;
  display: flex; align-items: center; gap: 12px;
}
.eyebrow::before { content: ''; width: 28px; height: 1px; background: currentColor; }
.eyebrow--light { color: var(--gold); }

.lead { font-size: 1.2rem; line-height: 1.6; color: var(--ink); }

.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 16px 30px; border-radius: 999px; border: 1px solid transparent;
  background: var(--ember); color: #fff; text-decoration: none;
  font: 600 .95rem/1 var(--sans); letter-spacing: .02em; cursor: pointer;
  transition: background .25s, transform .25s, box-shadow .25s, border-color .25s;
}
.btn:hover { background: var(--ember-dark); transform: translateY(-2px); box-shadow: 0 14px 28px -14px rgba(184, 85, 47, .8); }
.btn--ghost { background: none; border-color: var(--ink); color: var(--ink); }
.btn--ghost:hover { background: var(--ink); color: #fff; box-shadow: none; }
.btn--small { padding: 12px 22px; font-size: .88rem; }
.btn--full { width: 100%; }

.link { color: var(--ember); font-weight: 600; text-decoration: none; border-bottom: 1px solid currentColor; padding-bottom: 3px; }
.link span { display: inline-block; transition: transform .25s; }
.link:hover span { transform: translateX(5px); }

:focus-visible { outline: 2px solid var(--ember); outline-offset: 3px; border-radius: 4px; }

/* ---------- Nav ---------- */
.nav { position: fixed; inset: 0 0 auto; z-index: 50; transition: background .35s, box-shadow .35s, padding .35s; padding-block: 22px; }
.nav__inner { max-width: 1320px; margin: 0 auto; padding-inline: var(--gutter); display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.nav.is-stuck { background: rgba(250, 245, 236, .92); backdrop-filter: blur(14px); box-shadow: 0 1px 0 var(--line); padding-block: 12px; }

.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--ink); }
.brand__mark { width: 42px; height: 42px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.3; stroke-linecap: round; }
.brand__name { font: 500 1.12rem/1.15 var(--serif); display: flex; flex-direction: column; }
.brand__name small { font: 500 .66rem/1 var(--sans); letter-spacing: .18em; text-transform: uppercase; opacity: .75; margin-top: 5px; }
.nav.is-stuck .brand, .nav.is-open .brand { color: var(--ink); }
.brand--light { color: var(--cream); }

.nav__links { display: flex; align-items: center; gap: clamp(18px, 2.6vw, 36px); }
.nav__links a:not(.btn) { color: var(--ink); text-decoration: none; font-size: .93rem; font-weight: 500; position: relative; padding-block: 6px; }
.nav__links a:not(.btn)::after { content: ''; position: absolute; left: 0; bottom: 0; height: 1px; width: 100%; background: currentColor; transform: scaleX(0); transform-origin: left; transition: transform .3s; }
.nav__links a:not(.btn):hover::after { transform: scaleX(1); }
.nav.is-stuck .nav__links a:not(.btn) { color: var(--ink); }

.nav__toggle { display: none; width: 44px; height: 44px; background: none; border: 0; cursor: pointer; position: relative; color: var(--ink); }
.nav__toggle span { position: absolute; left: 10px; right: 10px; height: 1.5px; background: currentColor; transition: transform .3s, top .3s; }
.nav__toggle span:first-child { top: 17px; }
.nav__toggle span:last-child { top: 26px; }
.nav.is-stuck .nav__toggle, .nav.is-open .nav__toggle { color: var(--ink); }
.nav.is-open .nav__toggle span { top: 21px; }
.nav.is-open .nav__toggle span:first-child { transform: rotate(45deg); }
.nav.is-open .nav__toggle span:last-child { transform: rotate(-45deg); }

@media (max-width: 860px) {
  .nav__toggle { display: block; z-index: 2; }
  .brand { z-index: 2; position: relative; }
  .nav__links {
    position: fixed; inset: 0; background: var(--cream); flex-direction: column; justify-content: center; gap: 26px;
    opacity: 0; visibility: hidden; transition: opacity .3s, visibility .3s;
  }
  .nav.is-open .nav__links { opacity: 1; visibility: visible; }
  .nav__links a:not(.btn) { color: var(--ink) !important; font: 400 1.9rem/1.2 var(--serif); }
  .nav.is-open { background: none; box-shadow: none; backdrop-filter: none; }
}

/* ---------- Hero ---------- */
.hero { background: var(--cream); padding: clamp(110px, 14vh, 150px) 0 clamp(48px, 8vh, 90px); }
.hero__inner { max-width: 1320px; margin: 0 auto; padding-inline: var(--gutter); display: grid; grid-template-columns: 1fr minmax(0, .85fr); gap: clamp(36px, 6vw, 100px); align-items: center; }
.hero h1 { font-size: clamp(2.8rem, 6.6vw, 6rem); font-weight: 300; line-height: .98; letter-spacing: -.03em; margin-bottom: 26px; }
.hero h1 em { color: var(--ember); font-weight: 300; }
.hero__lead { font-size: clamp(1.15rem, 1.6vw, 1.4rem); line-height: 1.5; color: var(--ink); margin-bottom: 34px; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 14px; }
.hero__facts { display: grid; grid-template-columns: repeat(4, auto); justify-content: start; margin-top: clamp(40px, 7vh, 72px); }
.hero__facts li { display: flex; flex-direction: column; gap: 12px; padding: 4px clamp(18px, 2.2vw, 34px); border-left: 1px solid var(--line); }
.hero__facts li:first-child { padding-left: 0; border-left: 0; }
.hero__facts svg { width: 34px; height: 34px; fill: none; stroke: var(--ember); stroke-width: 1.4; stroke-linecap: round; stroke-linejoin: round; }
.hero__facts span { font: 400 1.12rem/1.2 var(--serif); color: var(--ink); white-space: nowrap; }
@media (max-width: 560px) {
  .hero__facts { grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--line); padding-top: 22px; }
  .hero__facts li { padding: 0 8px; gap: 8px; }
  .hero__facts svg { width: 28px; height: 28px; }
  .hero__facts span { font-size: .9rem; white-space: normal; }
}

.hero__frame {
  position: relative; margin: 0; overflow: hidden; aspect-ratio: 4 / 5; max-height: 78svh; width: 100%; justify-self: end;
  border-radius: 999px 999px var(--radius) var(--radius); box-shadow: var(--shadow);
  display: grid; place-items: end center;
  background:
    radial-gradient(ellipse 60% 22% at 62% 56%, rgba(255, 238, 205, .9), transparent 70%),
    linear-gradient(180deg, #c9d6d8 0%, #e6dccb 36%, #f1d3a8 55.500%, #6f8f99 56%, #44697a 72%, #1f3b4a 100%);
}
.hero__frame::after { content: attr(data-label); margin-bottom: 34px; font: italic 400 1.05rem/1 var(--serif); color: rgba(255, 255, 255, .85); padding: 10px 22px; border: 1px solid currentColor; border-radius: 999px; }
.hero__frame picture { display: contents; }
.hero__frame img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 1; }
@media (max-width: 860px) {
  .hero { padding-top: 96px; }
  .hero__inner { grid-template-columns: 1fr; gap: 34px; }
  .hero__frame { order: -1; max-height: none; width: min(100%, 420px); margin: 0 auto; border-radius: 999px 999px var(--radius) var(--radius); }
  .hero h1 { margin-bottom: 18px; }
  .hero__lead { margin-bottom: 26px; }
  .hero__actions .btn { flex: 1 1 auto; }
  .hero__facts { margin-top: 36px; }
}
}

/* ---------- Placeholders / photos ---------- */
.ph {
  position: relative; margin: 0; overflow: hidden; border-radius: var(--radius);
  background: linear-gradient(135deg, var(--ph1, #e9dcc6), var(--ph2, #d6c1a1));
  display: grid; place-items: center; isolation: isolate;
}
.ph::before {
  content: ''; position: absolute; inset: 0; z-index: -1; opacity: .5;
  background:
    radial-gradient(circle at 80% 15%, rgba(255, 255, 255, .55), transparent 45%),
    repeating-linear-gradient(115deg, transparent 0 22px, rgba(255, 255, 255, .1) 22px 23px);
}
.ph::after {
  content: attr(data-label);
  font: italic 400 clamp(1.1rem, 2vw, 1.5rem)/1.2 var(--serif); color: var(--ph-ink, rgba(22, 36, 47, .6));
  padding: 10px 22px; border: 1px solid currentColor; border-radius: 999px;
}
.ph picture { display: contents; }
.ph img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 1; cursor: zoom-in; transition: transform .8s cubic-bezier(.2, .7, .2, 1); }
.ph:hover img { transform: scale(1.04); }
.ph--a { --ph1: #ecd9bd; --ph2: #d9a97c; }
.ph--b { --ph1: #dfe3dc; --ph2: #a9b9b4; }
.ph--c { --ph1: #f1e6d3; --ph2: #dcc7a6; }
.ph--d { --ph1: #e8cfc0; --ph2: #c98f78; }
.ph--e { --ph1: #d5d6cb; --ph2: #8f9a8b; }

/* ---------- House ---------- */
.house__grid { display: grid; grid-template-columns: 1fr 1.05fr; gap: clamp(40px, 7vw, 110px); align-items: center; }
.house__text h2 { margin-bottom: 24px; }
.house__text .lead { margin-bottom: 20px; }
.house__text .link { display: inline-block; margin-top: 14px; }
.house__media { position: relative; }
.ph--tall { aspect-ratio: 4 / 5; box-shadow: var(--shadow); }
@media (max-width: 900px) {
  .house__grid { grid-template-columns: 1fr; }
  .house__media { max-width: 560px; }
}

/* ---------- Features ---------- */
.features__grid { margin-top: clamp(56px, 8vw, 100px); display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.feature { background: var(--white); padding: clamp(20px, 2.4vw, 30px); display: flex; align-items: center; gap: 16px; }
.feature svg { flex: none; width: 36px; height: 36px; fill: none; stroke: var(--ember); stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.feature h3 { font-size: 1.12rem; }
@media (max-width: 980px) { .features__grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 440px) { .features__grid { grid-template-columns: 1fr; } }

/* ---------- Gallery ---------- */
.gallery__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(10px, 1.4vw, 18px); }
.gallery__grid .ph { aspect-ratio: 4 / 5; }
.gallery__grid .g1 { grid-column: span 2; grid-row: span 2; aspect-ratio: auto; }
@media (max-width: 720px) {
  .gallery__grid { grid-template-columns: 1fr 1fr; }
  .gallery__grid .g1 { grid-row: span 1; aspect-ratio: 1; }
}

/* ---------- Story ---------- */
.story { background: var(--ink); color: rgba(255, 255, 255, .78); position: relative; overflow: hidden; }
.story::before {
  content: ''; position: absolute; width: 900px; height: 900px; right: -300px; top: -300px; border-radius: 50%;
  background: radial-gradient(circle, rgba(240, 196, 138, .13), transparent 62%); pointer-events: none;
}
.story h2 { color: #fff; margin-bottom: 24px; }
.story__text p { font-size: 1.08rem; max-width: 32em; }
.story__text p:last-child { margin-bottom: 0; }
.story em { color: var(--gold); }
.story__grid { display: grid; grid-template-columns: 1.15fr 1fr; gap: clamp(40px, 7vw, 110px); align-items: center; position: relative; }
.story__quote { margin: 0; padding: clamp(30px, 4vw, 52px); border: 1px solid rgba(240, 196, 138, .3); border-radius: var(--radius); background: rgba(255, 255, 255, .03); }
.story__quote p { font: italic 300 clamp(1.3rem, 2.2vw, 1.75rem)/1.45 var(--serif); color: #fff; margin-bottom: 26px; }
.story__quote footer { font-size: .8rem; letter-spacing: .06em; color: rgba(255, 255, 255, .6); padding-top: 20px; border-top: 1px solid rgba(255, 255, 255, .14); }
@media (max-width: 900px) { .story__grid { grid-template-columns: 1fr; } }

/* ---------- Kinsale ---------- */
.guide__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(28px, 3vw, 48px); }
.guide__col h3 { font: 600 .76rem/1 var(--sans); letter-spacing: .2em; text-transform: uppercase; color: var(--ember); padding-bottom: 16px; border-bottom: 1px solid var(--ink); }
.guide__col li { padding: 14px 0; border-bottom: 1px solid var(--line); font: 400 1.15rem/1.3 var(--serif); color: var(--ink); }
.guide__col li { padding: 0; }
.guide__col li a { display: block; padding: 14px 30px 14px 0; color: inherit; text-decoration: none; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23b8552f' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 21s-7-6.200-7-11a7 7 0 0 1 14 0c0 4.800-7 11-7 11z'/%3E%3Ccircle cx='12' cy='10' r='2.500'/%3E%3C/svg%3E") no-repeat right 2px top 16px / 18px; opacity: 1; transition: color .2s, padding-left .25s; }
.guide__col li a:hover { color: var(--ember); padding-left: 6px; }
.guide__col li span { display: block; font: 400 .9rem/1.45 var(--sans); color: var(--muted); margin-top: 4px; }
@media (max-width: 980px) { .guide__grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 480px) { .guide__grid { grid-template-columns: 1fr; } }

/* ---------- Contact ---------- */
.contact { background: var(--linen); }
.contact__grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(40px, 6vw, 96px); align-items: start; }
.contact__info h2 { margin-bottom: 0; }
.contact__list { margin: 36px 0; display: grid; gap: 22px; }
.contact__list li { display: flex; gap: 18px; align-items: center; }
.contact__list svg { flex: none; width: 50px; height: 50px; padding: 13px; border-radius: 50%; background: var(--cream); border: 1px solid var(--line); fill: none; stroke: var(--ember); stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.contact__list span { display: block; font-size: .72rem; font-weight: 600; letter-spacing: .18em; text-transform: uppercase; color: var(--muted); }
.contact__list a, .contact__list address { font: 400 1.25rem/1.35 var(--serif); color: var(--ink); text-decoration: none; overflow-wrap: anywhere; }
.contact__list a:hover { color: var(--ember); }

.map { border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); background: var(--sand); }
.map iframe { width: 100%; height: 280px; border: 0; filter: sepia(.25) saturate(.85); }

.form { background: var(--white); border-radius: calc(var(--radius) + 4px); padding: clamp(26px, 4vw, 48px); box-shadow: var(--shadow); border: 1px solid var(--line); }
.field { margin-bottom: 18px; min-width: 0; }
.field--hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field label { display: block; font-size: .85rem; font-weight: 600; color: var(--ink); margin-bottom: 7px; }
.field label small { font-weight: 400; color: var(--muted); }
.field input, .field textarea {
  width: 100%; font: inherit; font-size: 1rem; color: var(--ink);
  background: var(--cream); border: 1px solid var(--line); border-radius: 12px; padding: 14px 16px;
  transition: border-color .2s, box-shadow .2s, background .2s;
}
.field textarea { resize: vertical; min-height: 130px; }
.field input::placeholder, .field textarea::placeholder { color: #a39b8e; }
.field input:focus, .field textarea:focus { outline: 0; border-color: var(--ember); background: #fff; box-shadow: 0 0 0 4px rgba(184, 85, 47, .12); }
.form__done { text-align: center; padding: clamp(10px, 2vw, 24px) 0; animation: pop .5s cubic-bezier(.2, .7, .2, 1); }
.form__done svg { width: 72px; height: 72px; margin: 0 auto 22px; fill: none; stroke: var(--ember); stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; }
.form__done svg path { stroke-dasharray: 40; stroke-dashoffset: 40; animation: draw .5s .25s ease-out forwards; }
.form__done h3 { font-size: 1.9rem; margin-bottom: 12px; }
.form__done p { color: var(--muted); margin: 0 0 8px; }
.form__done strong { color: var(--ink); font-weight: 500; }
.form__done-alt a { color: var(--ink); text-decoration: none; border-bottom: 1px solid var(--line); }
.form__done .link { background: none; border: 0; border-bottom: 1px solid currentColor; padding: 0 0 3px; margin-top: 22px; font: 600 .95rem var(--sans); cursor: pointer; }
@keyframes pop { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
@keyframes draw { to { stroke-dashoffset: 0; } }
.form__note { font-size: .85rem; color: var(--muted); text-align: center; margin: 16px 0 0; }
.form__note.is-error { color: var(--ember-dark); }
@media (max-width: 900px) { .contact__grid { grid-template-columns: 1fr; } }
@media (max-width: 480px) { .field--hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.field-row { grid-template-columns: 1fr; gap: 0; } }

/* ---------- Footer ---------- */
.footer { background: var(--ink); color: rgba(255, 255, 255, .7); padding-block: 44px; font-size: .92rem; }
.footer__inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px 40px; }
.footer p { margin: 0; }
.footer__contact { display: flex; flex-wrap: wrap; gap: 6px 14px; }
.footer a { text-decoration: none; }
.footer__contact a:hover { color: var(--gold); }
.footer__small { font-size: .8rem; opacity: .7; }

/* ---------- Lightbox ---------- */
.lightbox { border: 0; padding: 0; background: none; max-width: 94vw; max-height: 94vh; color: #fff; text-align: center; overflow: visible; }
.lightbox::backdrop { background: rgba(14, 24, 32, .92); }
.lightbox img { max-width: 94vw; max-height: 84vh; border-radius: 10px; margin: 0 auto; }
.lightbox p { font: italic 1.1rem var(--serif); margin: 14px 0 0; }
.lightbox__close { position: fixed; top: 18px; right: 22px; width: 48px; height: 48px; border-radius: 50%; border: 1px solid rgba(255, 255, 255, .4); background: none; color: #fff; font-size: 1.7rem; line-height: 1; cursor: pointer; }

/* ---------- Motion ---------- */
.has-reveal .reveal { opacity: 0; transform: translateY(26px); transition: opacity .9s cubic-bezier(.2, .7, .2, 1), transform .9s cubic-bezier(.2, .7, .2, 1); }
.has-reveal .reveal.is-in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition-duration: .01ms !important; animation-duration: .01ms !important; }
}
