/* Websites page: a sheet of bone paper, black ink and one vermilion.
   The opening is three things: the word, one black band, and Caesar at his laptop in front of
   a red disc, his head above the band. Three short lines say what a site should be. */

.ws-hero { display: grid; grid-template-rows: auto auto minmax(300px, 1fr) auto; min-height: max(100svh, 760px); padding: calc(var(--nav-h) + 6px) var(--gutter) clamp(22px, 3.4svh, 40px); overflow: clip; }

/* Title: eight letters set at even intervals across the sheet. */
.ws-title { display: flex; justify-content: space-between; margin: 0; font: 500 clamp(3.2rem, 11.4vw, 14rem)/.9 var(--cormorant); text-transform: uppercase; color: var(--ink); }
.ws-title span { display: block; }
.ws-sub { margin: clamp(8px, 1.6svh, 18px) auto 0; max-width: none; font: 500 .75rem/1 var(--mono); letter-spacing: .26em; text-transform: uppercase; text-align: center; color: var(--mute); }

.ws-band { --rise: clamp(54px, 9svh, 96px); position: relative; margin-top: calc(var(--rise) + 30px); background: var(--ink); color: var(--ground); }
.ws-band__art { position: absolute; inset: 0; }
/* The disc is a sun on the band's horizon: it rises above the band and the band cuts it below. */
.ws-band__clip { position: absolute; inset: calc(-1 * var(--rise) - 14px) 0 0; overflow: hidden; }
.ws-band__disc { position: absolute; left: 50%; top: 0; height: 142%; aspect-ratio: 1; border-radius: 50%; background: var(--accent); translate: -50% 0; }
/* Caesar: the engraving is printed over the disc, so the ink goes black on red from the laurel
   down. His head stands above the band, in front of the top of the disc. */
.ws-caesar { position: absolute; left: 50%; bottom: 0; height: calc(100% + var(--rise) - 14px); aspect-ratio: 3 / 2; translate: -47% 0; pointer-events: none; }
.ws-caesar img { width: 100%; height: 100%; }
.ws-band__copy, .ws-band__ask { position: absolute; z-index: 2; bottom: clamp(24px, 4.4svh, 52px); }
.ws-band__copy { left: clamp(22px, 3.4vw, 64px); }
.ws-band__ask { right: clamp(22px, 3.4vw, 64px); text-align: right; }
.ws-band__lines { margin: 0 0 clamp(16px, 2.6svh, 28px); font: italic 500 clamp(1.5rem, 1.1vw + 1.1rem, 2.3rem)/1.22 var(--cormorant); color: var(--ground); }
.ws-band .link { color: var(--ground); border-bottom-color: var(--accent); }
.ws-band__ask p { margin: 0 0 clamp(16px, 2.6svh, 26px); font-size: 1.06rem; line-height: 1.45; color: rgba(239, 233, 220, .82); }

.ws-base { display: flex; justify-content: space-between; gap: 20px; margin: clamp(16px, 2.6svh, 28px) 0 0; max-width: none; font: 500 .6875rem/1 var(--mono); letter-spacing: .24em; text-transform: uppercase; color: var(--mute); }

@media (max-width: 900px) {
  .ws-hero { grid-template-rows: auto; min-height: 0; padding-bottom: 34px; }
  .ws-title { font-size: 11.6vw; }
  /* On a phone the words sit on the band above and below the picture, never over the figure. */
  .ws-band { --rise: 0px; margin-top: 22px; display: grid; }
  .ws-band__copy, .ws-band__ask { position: static; padding: 26px 22px 8px; text-align: left; }
  .ws-band__copy { order: -1; }
  .ws-band__ask { padding: 8px 22px 28px; }
  .ws-band__art { position: relative; height: 74vw; overflow: hidden; }
  .ws-band__clip { inset: 0; }
  .ws-band__disc { height: 112%; top: 4%; }
  .ws-caesar { height: 100%; translate: -46% 0; }
  .ws-base { flex-wrap: wrap; }
}

/* ================= Plate I: five homepages ================= */

.ws-head { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(24px, 5vw, 96px); align-items: end; margin-bottom: clamp(40px, 4.6vw, 76px); }
.ws-head .label { margin-bottom: 22px; }
.ws-head p { font-size: 1.1rem; }
@media (max-width: 860px) { .ws-head { grid-template-columns: 1fr; } }

/* Five phones in a row. The one under the pointer comes forward and the others step back. */
.phones { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: clamp(14px, 2.2vw, 44px); margin: 0; padding: 0; list-style: none; }
.ph { margin: 0; transition: transform 1s var(--ease), opacity .8s var(--ease); }
.ph img { display: block; width: 100%; height: auto; filter: drop-shadow(0 28px 34px rgba(40, 30, 14, .3)); }
.ph figcaption { display: grid; gap: 6px; margin-top: clamp(18px, 1.8vw, 28px); padding-top: 14px; border-top: 1px solid var(--line-3); }
.ph b { font: italic 500 clamp(1.25rem, .7vw + 1.05rem, 1.7rem)/1.1 var(--cormorant); color: var(--ink); }
.ph span { font: 500 .75rem/1.3 var(--mono); letter-spacing: .18em; text-transform: uppercase; color: var(--mute); }
@media (hover: hover) {
  .ph:hover { transform: translateY(-12px); }
  .phones:has(.ph:hover) .ph:not(:hover) { opacity: .5; }
}
.ws-work__more { margin-top: clamp(34px, 4vw, 60px); max-width: none; }
.ws-work__swipe { display: none; margin: 18px 0 0; font: 500 .75rem/1 var(--mono); letter-spacing: .2em; text-transform: uppercase; color: var(--mute); }
.ws-work__swipe i { font-style: normal; }
/* On a phone the row becomes a strip to swipe, one design at a time. */
@media (max-width: 900px) {
  .phones { display: flex; gap: 18px; margin-inline: calc(-1 * var(--gutter)); padding: 0 21vw 10px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
  .phones::-webkit-scrollbar { display: none; }
  .phones li { flex: 0 0 58vw; scroll-snap-align: center; }
  .ws-work__swipe { display: block; }
}

/* ================= Method: three plates, each a figure doing the job ================= */

.ws-method__head { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 6fr); gap: clamp(24px, 5vw, 96px); align-items: end; margin-bottom: clamp(36px, 4.4vw, 70px); }
.ws-method__head .btn { margin-top: 24px; }
.plates { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(16px, 1.8vw, 32px); margin: 0; padding: 0; list-style: none; }
.pl { position: relative; display: flex; flex-direction: column; border: 1px solid var(--line-3); background: color-mix(in srgb, var(--ground) 55%, #fff); }
.pl::after { content: ""; position: absolute; inset: 5px; border: 1px solid var(--line); pointer-events: none; }
.pl__no { display: flex; align-items: center; gap: 12px; padding: 22px clamp(20px, 2vw, 34px) 0; font: 500 .6875rem/1 var(--mono); letter-spacing: .22em; text-transform: uppercase; color: var(--accent); }
.pl__no::after { content: ""; flex: 1; height: 1px; background: var(--line-2); }
.pl__art { padding: clamp(10px, 1.4vw, 24px) clamp(14px, 1.6vw, 28px) 0; }
.pl__art img { width: 100%; }
.pl__body { flex: 1; padding: clamp(14px, 1.6vw, 26px) clamp(20px, 2vw, 34px) clamp(24px, 2.4vw, 40px); border-top: 1px solid var(--line-2); }
.pl h3 { margin-bottom: 12px; font: italic 500 clamp(1.6rem, 1vw + 1.2rem, 2.3rem)/1.04 var(--cormorant); letter-spacing: -.01em; }
.pl p { font-size: 1.04rem; }
@media (max-width: 1240px) { .plates { grid-template-columns: 1fr 1fr; } }
@media (max-width: 980px) { .ws-method__head { grid-template-columns: 1fr; } }
@media (max-width: 640px) { .plates { grid-template-columns: 1fr; } }


/* ================= Online booking: a window into the IslandBook room ================= */

.ws-book { padding-top: 0; }
.ws-book__panel { position: relative; display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(20px, 4vw, 80px); align-items: center; padding: clamp(30px, 4.4vw, 80px); outline: 1px solid var(--line-3); outline-offset: 6px; overflow: hidden; }
.ws-book__panel > .light { --lit: .4; }
.ws-book__copy { position: relative; z-index: 1; }
.ws-book__word {
  display: block; margin-bottom: 22px; font: 900 clamp(2.1rem, 4.2vw, 5.2rem)/.82 var(--bodoni); font-optical-sizing: none; font-variation-settings: "opsz" 22; letter-spacing: -.015em; text-transform: uppercase; white-space: nowrap;
  background: url(/assets/art/sea-surface.webp) 40% 50% / 150% auto; -webkit-background-clip: text; background-clip: text; color: transparent; filter: saturate(1.12) brightness(1.08);
}
.ws-book__copy h2 { font: 400 clamp(1.5rem, 1.2vw + 1.1rem, 2.3rem)/1.1 var(--bodoni); letter-spacing: -.012em; margin-bottom: 16px; }
.ws-book__copy .btn { margin-top: 28px; }
.ws-book__phone { position: relative; z-index: 1; justify-self: center; width: min(280px, 78%); filter: drop-shadow(0 30px 60px rgba(0, 0, 0, .6)); transition: transform .9s var(--ease); }
.ws-book__phone:hover { transform: translateY(-10px); }
@media (max-width: 860px) { .ws-book__panel { grid-template-columns: 1fr; padding: 34px 24px; } }

/* ================= Contact ================= */

.contact--ink .btn--accent::after { background: var(--ink); }
